Fixed some dead code 57/18057/3
Dhruv Khattar [Fri, 8 Apr 2016 05:38:50 +0000 (10:38 +0530)]
Change-Id: Id16cd75f7fee53aef05539d62ba543c03a1e9a21

scilab/modules/localization/sci_gateway/cpp/sci_setlanguage.cpp

index fae30fb..bac9477 100644 (file)
@@ -52,26 +52,17 @@ types::Function::ReturnValue sci_setlanguage(types::typed_list &in, int _piRetCo
     wchar_t *param = in[0]->getAs<types::String>()->get(0);
     const wchar_t *newlanguage = convertlanguagealias(param);
 
-    if ( !LanguageIsOK(param) && (newlanguage == NULL) )
+    if (!LanguageIsOK(param) && (newlanguage == NULL))
     {
         if (getWarningMode())
         {
-            if (newlanguage == NULL)
-            {
-                sciprint(_("%ls: Unsupported language '%ls'.\n"), L"setlanguage", param);
-            }
-            else
-            {
-                sciprint(_("%ls: Unsupported language '%ls'.\n"), L"setlanguage", newlanguage);
-            }
+            sciprint(_("%ls: Unsupported language '%ls'.\n"), L"setlanguage", param);
         }
 
         out.push_back(new types::Bool(FALSE));
         return types::Function::OK;
     }
 
-
-
     if (newlanguage)
     {
         if (needtochangelanguage(newlanguage))