Fix Prevent issue
authorZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Mon, 16 Sep 2013 06:23:13 +0000 (08:23 +0200)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Mon, 16 Sep 2013 07:56:57 +0000 (16:56 +0900)
[Issue#]   CID: 31536
[Problem]  Unreachable code
[Cause]    Condition that is never true
[Solution] Remove dead code

[Verification] Build repository

Change-Id: Idd0e37f350b47d9355575bfa93ebcc2ee2209f4b

src/jobs/widget_install/task_configuration.cpp

index 53fdfba..cd4ac64 100644 (file)
@@ -637,16 +637,8 @@ void TaskConfiguration::setApplicationType(
         LogDebug("namespace = [" << *iterator << "]");
 
         if (*iterator == ConfigurationNamespace::TizenWebAppNamespaceName) {
-            if (widgetAppType != APP_TYPE_UNKNOWN &&
-                widgetAppType != APP_TYPE_TIZENWEBAPP)
-            {
-                LogError("To many namespaces declared in configuration fileA.");
-                ThrowMsg(Exceptions::WidgetConfigFileInvalid,
-                         "Config.xml has more than one valid namespace");
-            }
             widgetAppType = APP_TYPE_TIZENWEBAPP;
-        } else {
-            LogDebug("Namespace ignored.");
+            break;
         }
     }