Unused fields in WidgetRegisterInfo
authorTomasz Iwanek <t.iwanek@samsung.com>
Mon, 11 Feb 2013 13:02:27 +0000 (14:02 +0100)
committerGerrit Code Review <gerrit2@kim11>
Thu, 21 Feb 2013 13:54:25 +0000 (22:54 +0900)
[Issue#]       LINUXWRT-72
[Bug]          Unused fields
[Cause]        N/A
[Solution]     Remveo them
[Verification] Build repository wrt-commons,wrt-installer for BOTH enviroments

Change-Id: I848fdeeedbfc33c89f7c5346e9bf6e69d05d26a4

modules/widget_dao/dao/widget_dao.cpp
modules/widget_dao/include/dpl/wrt-dao-ro/config_parser_data.h
modules/widget_dao/include/dpl/wrt-dao-ro/widget_dao_read_only.h

index 6529fd0..65ea027 100644 (file)
@@ -380,15 +380,8 @@ DbWidgetHandle WidgetDAO::registerWidgetInfo(
         row.Set_app_id(*handle);
     }
 
-    if (regInfo.webAppType == APP_TYPE_UNKNOWN && regInfo.type !=
-        APP_TYPE_UNKNOWN)
-    {
-        // TODO : regInfo.type is temporary code for security.
-        //        This code will be removed.
-        row.Set_widget_type(regInfo.type.appType);
-    } else {
-        row.Set_widget_type(regInfo.webAppType.appType);
-    }
+    row.Set_widget_type(regInfo.webAppType.appType);
+
     row.Set_widget_id(widgetConfigurationInfo.widget_id);
     row.Set_defaultlocale(widgetConfigurationInfo.defaultlocale);
     row.Set_widget_version(widgetConfigurationInfo.version);
index c6ae0bd..f56be55 100644 (file)
@@ -299,7 +299,6 @@ class ConfigParserData
     IconsList iconsList;
 
     // tizen id / required platform min version for TIZEN webapp
-    DPL::OptionalString tizenId;
     DPL::OptionalString tizenMinVersionRequired;
     DPL::OptionalString tizenPkgId;
     DPL::OptionalString tizenAppId;
index a7cd866..c2b1de2 100644 (file)
@@ -163,7 +163,6 @@ struct WidgetRegisterInfo
     {}
 
     WidgetType webAppType;
-    WidgetType type; // TODO : This type will be removed.
     DPL::OptionalString guid;
     DPL::OptionalString version;
     DPL::OptionalString minVersion;
@@ -174,8 +173,6 @@ struct WidgetRegisterInfo
     ConfigParserData configInfo;
     LocalizationData localizationData;
 
-    DPL::OptionalString pkgname;
-    WidgetPkgName pkgName;
     TizenPkgId tzPkgid;
     TizenAppId tzAppid;