[Prevent] Deleted unreachable code.
authorJan Olszak <j.olszak@samsung.com>
Fri, 21 Dec 2012 08:43:34 +0000 (09:43 +0100)
committerGerrit Code Review <gerrit2@kim11>
Mon, 31 Dec 2012 13:52:24 +0000 (22:52 +0900)
[Issue] Unreachable code.
[Bug] N/A
[Cause] N/A
[Solution] Deleted two unreachable return statements.
[Verification] Build commons.

Change-Id: I07be1ad33fcd045c109ee18c158f5fc0010b3ef0

modules/core/src/string.cpp

index efb68c7..f03ccec 100644 (file)
@@ -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];