From: Zbigniew Kostrzewa Date: Mon, 16 Sep 2013 06:23:13 +0000 (+0200) Subject: Fix Prevent issue X-Git-Tag: 2.2.1_release~10^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a64a4420f8aefc7ddb974623a7694cdcfc9c24b;p=framework%2Fweb%2Fwrt-installer.git Fix Prevent issue [Issue#] CID: 31536 [Problem] Unreachable code [Cause] Condition that is never true [Solution] Remove dead code [Verification] Build repository Change-Id: Idd0e37f350b47d9355575bfa93ebcc2ee2209f4b --- diff --git a/src/jobs/widget_install/task_configuration.cpp b/src/jobs/widget_install/task_configuration.cpp index 53fdfba..cd4ac64 100644 --- a/src/jobs/widget_install/task_configuration.cpp +++ b/src/jobs/widget_install/task_configuration.cpp @@ -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; } }