From: Jan Olszak Date: Fri, 21 Dec 2012 08:43:34 +0000 (+0100) Subject: [Prevent] Deleted unreachable code. X-Git-Tag: submit/trunk/20130102.020305~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51a58f3eacc3da7fe9757364f836891131716b5c;p=platform%2Fframework%2Fweb%2Fwrt-commons.git [Prevent] Deleted unreachable code. [Issue] Unreachable code. [Bug] N/A [Cause] N/A [Solution] Deleted two unreachable return statements. [Verification] Build commons. Change-Id: I07be1ad33fcd045c109ee18c158f5fc0010b3ef0 --- diff --git a/modules/core/src/string.cpp b/modules/core/src/string.cpp index efb68c7..f03ccec 100644 --- a/modules/core/src/string.cpp +++ b/modules/core/src/string.cpp @@ -115,7 +115,6 @@ String FromUTF8String(const std::string& aIn) ThrowMsg(StringException::IconvConvertErrorUTF8ToUTF32, "iconv failed for " << "UTF-32 <- UTF-8" << "error: " << GetErrnoString()); - return String(); } // Ignore BOM in front of UTF-32 @@ -158,7 +157,6 @@ std::string ToUTF8String(const DPL::String& aIn) ThrowMsg(StringException::IconvConvertErrorUTF32ToUTF8, "iconv failed for " << "UTF-8 <- UTF-32" << "error: " << GetErrnoString()); - return std::string(); } return &output[0];