From c1fc4cc37e74f37b582eeb2185bd85f52e21c20e Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 13 Apr 2014 13:20:38 +0200 Subject: [PATCH] Drop logically dead code Signed-off-by: Sven Strickroth --- src/Git/gittype.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Git/gittype.h b/src/Git/gittype.h index 2bb249e44..16cbdec07 100644 --- a/src/Git/gittype.h +++ b/src/Git/gittype.h @@ -1,6 +1,6 @@ // TortoiseGit - a Windows shell extension for easy version control -// Copyright (C) 2008-2013 - TortoiseGit +// Copyright (C) 2008-2014 - TortoiseGit // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -87,8 +87,6 @@ public: const BYTE* dataEnd=&*(begin()+(size()-dataSize) );++dataEnd;//Set end one step after last place to search if(pos>=dataEnd) return -1;//Started over end. Return not found - if(dataSize==0) - return start;//No search data. Return current position BYTE firstByte=dataToFind[0]; while(pos