Removal of temporary AIL code
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 16 Apr 2013 07:03:03 +0000 (09:03 +0200)
committerGerrit Code Review <gerrit2@kim11>
Tue, 16 Apr 2013 15:25:00 +0000 (00:25 +0900)
[Issue#]       N/A
[Bug]          Temporary coe
[Cause]        N/A
[Solution]     Remove it
[Verification] Install widget and unisntall. Iconshould appear and disappear

Change-Id: I19899211411de093f861134dcc8d75ccc0f3b719

src/jobs/widget_install/task_manifest_file.cpp
src/jobs/widget_install/task_manifest_file.h

index 009b315..41767b0 100644 (file)
@@ -399,33 +399,6 @@ void TaskManifestFile::saveLocalizedKey(std::ofstream &file,
     file << "=";
 }
 
-void TaskManifestFile::updateAilInfo()
-{
-    // Update ail for desktop
-    std::string cfgAppid =
-        DPL::ToUTF8String(m_context.widgetConfig.tzAppid);
-    const char* appid = cfgAppid.c_str();
-
-    LogDebug("Update ail desktop : " << appid);
-    ail_appinfo_h ai = NULL;
-    ail_error_e ret;
-
-    ret = ail_get_appinfo(appid, &ai);
-    if (ai) {
-        ail_destroy_appinfo(ai);
-    }
-
-    if (AIL_ERROR_NO_DATA == ret) {
-        if (ail_desktop_add(appid) < 0) {
-            LogWarning("Failed to add ail desktop : " << appid);
-        }
-    } else if (AIL_ERROR_OK == ret) {
-        if (ail_desktop_update(appid) < 0) {
-            LogWarning("Failed to update ail desktop : " << appid);
-        }
-    }
-}
-
 void TaskManifestFile::backupIconFiles()
 {
     LogInfo("Backup Icon Files");
@@ -542,10 +515,6 @@ void TaskManifestFile::stepParseManifest()
         ThrowMsg(Exceptions::ManifestInvalid, "Parser returncode: " << code);
     }
 
-    // TODO : It will be removed. AIL update is temporary code request by pkgmgr
-    // team.
-    updateAilInfo();
-
     m_context.job->UpdateProgress(
         InstallerContext::INSTALL_CREATE_MANIFEST,
         "Widget Manifest Parsing Finished");
@@ -562,10 +531,6 @@ void TaskManifestFile::stepParseUpgradedManifest()
         ThrowMsg(Exceptions::ManifestInvalid, "Parser returncode: " << code);
     }
 
-    // TODO : It will be removed. AIL update is temporary code request by pkgmgr
-    // team.
-    updateAilInfo();
-
     m_context.job->UpdateProgress(
         InstallerContext::INSTALL_CREATE_MANIFEST,
         "Widget Manifest Parsing Finished");
index 36a1c92..54a3bbb 100644 (file)
@@ -84,7 +84,6 @@ class TaskManifestFile :
     DPL::String manifest_file;
 
     //private methods
-    void updateAilInfo();
 
     void writeManifest(const DPL::String & path);
     void commitManifest();