From cd748bd44a54c3d3b6bdf366734b4e111997a04d Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 2 Sep 2016 17:21:35 +0100 Subject: [PATCH] remove unneeded code --- ostd/string.hh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ostd/string.hh b/ostd/string.hh index 4af8761..eaeb534 100644 --- a/ostd/string.hh +++ b/ostd/string.hh @@ -187,16 +187,12 @@ diffsize: int case_compare(CharRangeBase s) const { ostd::Size s1 = size(), s2 = s.size(); - if (!s1 || !s2) { - goto diffsize; - } for (ostd::Size i = 0, ms = ostd::min(s1, s2); i < ms; ++i) { int d = toupper(p_beg[i]) - toupper(s[i]); if (d) { return d; } } -diffsize: return (s1 < s2) ? -1 : ((s1 > s2) ? 1 : 0); }