Skip to content

Commit 406ddc5

Browse files
committed
cleanup dead code, spotted by dmitry-me!
1 parent 9ce2320 commit 406ddc5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ inline static const char *getOrdinalText(int i)
8282
inline static int caseInsensitiveStringCompare(const std::string &lhs, const std::string &rhs)
8383
{
8484
if (lhs.size() != rhs.size())
85-
return (lhs.size() < rhs.size()) ? -1 : ((lhs.size() == rhs.size()) ? 0 : 1);
85+
return (lhs.size() < rhs.size()) ? -1 : 1;
8686
for (unsigned int i = 0; i < lhs.size(); ++i) {
8787
int c1 = std::toupper(lhs[i]);
8888
int c2 = std::toupper(rhs[i]);
8989
if (c1 != c2)
90-
return (c1 < c2) ? -1 : ((c1 == c2) ? 0 : 1);
90+
return (c1 < c2) ? -1 : 1;
9191
}
9292
return 0;
9393
}

0 commit comments

Comments
 (0)