minor change
[framework/osp/appwidget-service.git] / src / FShell_AppWidgetContextBase.cpp
index edfe313..c952843 100644 (file)
@@ -85,15 +85,6 @@ using namespace Tizen::Base;
 using namespace Tizen::Base::Collection;
 
 
-const String APPWIDGET_ON_ADD(L"AppWidget='event=add'");
-const String APPWIDGET_ON_REMOVE(L"AppWidget='event=remove'");
-const String APPWIDGET_ON_UPDATE(L"AppWidget='event=update'");
-const String APPWIDGET_ON_RESIZE(L"AppWidget='event=resize'");
-const String APPWIDGET_ON_TOUCH(L"AppWidget='event=touch'");
-const String APPWIDGET_POPUP_ON_CREATE(L"AppWidgetPopup='event=create'");
-const String APPWIDGET_POPUP_ON_DESTROY(L"AppWidgetPopup='event=destroy'");
-const String APPWIDGET_POPUP_ON_TOUCH(L"AppWidgetPopup='event=touch'");
-
 const String ARG_KEY_INSTANCE_ID = L"_InstanceId";
 const String ARG_KEY_PROVIDER_NAME = L"_ProviderName";
 const String ARG_KEY_USER_INFO = L"_UserInfo";
@@ -228,72 +219,6 @@ _AppWidgetRequestHelper::SendRequestToApp(const AppId& appId, const String& oper
        return Tizen::App::_AppControlManager::GetInstance()->LaunchPkg(msg, pAppId.get(), pOperation.get(), null, null, null, null);
 }
 
-/*result
-_AppWidgetRequestHelper::ExtractPackageIdAndExecutableName(AppId appId, AppId& outPackageId, String& outExecutableName)
-{
-       const int APP_ID_LEN = 10;
-
-       if (appId.GetLength() > APP_ID_LEN)
-       {
-               result r = appId.SubString(APP_ID_LEN + 1, appId.GetLength() - (APP_ID_LEN + 1), outExecutableName);
-               SysTryReturnResult(NID_APP, !IsFailed(r), E_INVALID_ARG, "invalid AppId(%ls)", appId.GetPointer());
-
-               r = appId.SubString(0, APP_ID_LEN, outPackageId);
-               SysTryReturnResult(NID_APP, !IsFailed(r), E_INVALID_ARG, "invalid AppId(%ls)", appId.GetPointer());
-
-               return E_SUCCESS;
-       }
-       return E_SYSTEM;
-}*/
-
-/*
-// helper for bundle
-result
-_AppWidgetRequestHelper::AddStrArrayToBundle(bundle* b, const char* key, const IList* pList)
-{
-       bundle* pb = b;
-       SysTryReturnResult(NID_APP, pb != NULL, E_INVALID_ARG, "Empty bundle.");
-
-       if (pList == null || pList->GetCount() == 0)
-       {
-               SysLog(NID_APP, "No element added for bundle.");
-               return E_SUCCESS;
-       }
-
-       int i = 0;
-       const int count = pList->GetCount();
-
-       const char** pSa = new (std::nothrow) const char*[count];
-       SysTryReturnResult(NID_APP, pSa != null, E_OUT_OF_MEMORY, "Memory allocation failure with cound %d.", count);
-
-       for (i = 0; i < count; i++)
-       {
-               pSa[i] = null;
-
-               const String* pStr = static_cast<const String*>(pList->GetAt(i));
-               if (pStr)
-               {
-                       pSa[i] = _StringConverter::CopyToCharArrayN(*pStr);
-               }
-       }
-
-       result r = E_SUCCESS;
-
-       int ret = bundle_add_str_array(pb, key, pSa, count);
-       SysTryReturnResult(NID_APP, ret >= 0, E_SYSTEM, "Bundle add failre with %d.", strerror(errno));
-
-//CATCH:
-       for (i = 0; i < count; i++)
-       {
-               delete[] pSa[i];
-       }
-
-       delete[] pSa;
-
-       return r;
-}
-*/
-
 } } } // Tizen::Shell::App {