From b0fac0b811b164f74d564782f99df76effd383c9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 26 Nov 2011 11:16:50 +1100 Subject: Removed unreachable code. Issue described in bug 3440534. --- src/Document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index c721c88ff..a0dc7f54c 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1461,7 +1461,7 @@ long Document::FindText(int minPos, int maxPos, const char *search, const int endPos = MovePositionOutsideChar(maxPos, increment, false); // Compute actual search ranges needed - const int lengthFind = (*length == -1) ? static_cast(strlen(search)) : *length; + const int lengthFind = *length; //Platform::DebugPrintf("Find %d %d %s %d\n", startPos, endPos, ft->lpstrText, lengthFind); const int limitPos = Platform::Maximum(startPos, endPos); -- cgit v1.2.3