Unused code 3
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 27 Nov 2012 13:39:46 +0000 (14:39 +0100)
committerGerrit Code Review <gerrit2@kim11>
Wed, 28 Nov 2012 14:18:31 +0000 (23:18 +0900)
[Issue#]       LINUXNGWAP-561
[Bug]          Unused code and headers
[Cause]        N/A
[Solution]     N/A
[Verification] Build repository

Change-Id: I0d93e7f3fa0bf7e71a0a9696f83aa460b15d816e

src/common/DESCRIPTION [deleted file]
src/common/new_strdup.h [deleted file]
src/common/wrt_error.h [deleted file]
src/domain/screen_user_data.h [deleted file]
src/domain/widget_launch_struct.h [deleted file]

diff --git a/src/common/DESCRIPTION b/src/common/DESCRIPTION
deleted file mode 100644 (file)
index f29801c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Common definitions, global settings, small utilities
diff --git a/src/common/new_strdup.h b/src/common/new_strdup.h
deleted file mode 100644 (file)
index 86a9672..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- *    Licensed under the Apache License, Version 2.0 (the "License");
- *    you may not use this file except in compliance with the License.
- *    You may obtain a copy of the License at
- *
- *        http://www.apache.org/licenses/LICENSE-2.0
- *
- *    Unless required by applicable law or agreed to in writing, software
- *    distributed under the License is distributed on an "AS IS" BASIS,
- *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *    See the License for the specific language governing permissions and
- *    limitations under the License.
- */
-/*
- * @file    new_strdup.h
- * @author  Lukasz Wrzosek (l.wrzosek@samsung.com)
- * @version 1.0
- * @brief   This file contains the declaration of the stdup with new operator
- */
-
-#ifndef SRC_COMMON_NEW_STRDUP_H_
-#define SRC_COMMON_NEW_STRDUP_H_
-
-inline char* new_strdup(const char *str)
-{
-    size_t size = strlen(str);
-    char* ret = new char[size + 1];
-    strcpy(ret, str);
-    return ret;
-}
-
-#endif //SRC_COMMON_NEW_STRDUP_H_
diff --git a/src/common/wrt_error.h b/src/common/wrt_error.h
deleted file mode 100644 (file)
index fae6dfd..0000000
+++ /dev/null
@@ -1,188 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- *    Licensed under the Apache License, Version 2.0 (the "License");
- *    you may not use this file except in compliance with the License.
- *    You may obtain a copy of the License at
- *
- *        http://www.apache.org/licenses/LICENSE-2.0
- *
- *    Unless required by applicable law or agreed to in writing, software
- *    distributed under the License is distributed on an "AS IS" BASIS,
- *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *    See the License for the specific language governing permissions and
- *    limitations under the License.
- */
-/**
- * This file contains the declaration of the error codes of Widget.
- *
- * @file    wrt_error.h
- * @author  MaQuan (jason.ma@samsung.com)
- * @version 0.7
- * @brief   This file contains the declaration of the error codes of Widget.
- */
-
-#ifndef _WRT_ERROR_H_
-#define _WRT_ERROR_H_
-
-#ifndef WRT_ERROR_MASKL8
-#define WRT_ERROR_MASKL8    0xFF
-#endif
-
-#ifndef WRT_SET_IDENT
-#define WRT_SET_IDENT(X)    (X & WRT_ERROR_MASKL8)
-#endif
-
-#ifndef WRT_ERROR_SET
-#define WRT_ERROR_SET(X)    ((X & WRT_ERROR_MASKL8) << 8)
-#endif
-
-#define WRT_MID_ERRCODE        0x10000 + WRT_SET_IDENT(5)
-
-/*typedef */ enum
-{
-    WRT_GENERAL_ERRCODE = WRT_MID_ERRCODE + WRT_SET_IDENT(0),
-    WRT_CONFIG_ERRCODE = WRT_MID_ERRCODE + WRT_SET_IDENT(1),
-    WRT_DOMAIN_ERRCODE = WRT_MID_ERRCODE + WRT_SET_IDENT(2),
-    WRT_JS_EXT_ERRCODE = WRT_MID_ERRCODE + WRT_SET_IDENT(3),
-    WRT_WM_ERRCODE = WRT_MID_ERRCODE + WRT_SET_IDENT(4),
-    WRT_PLUGIN_ERRCODE = WRT_MID_ERRCODE + WRT_SET_IDENT(5),
-    //_ACE support
-    WRT_SAI_ERRCODE = WRT_MID_ERRCODE + WRT_SET_IDENT(6)
-};
-
-/**
- * WRT error code description
- *
- * @ WRT_SUCCESS
- *    There is no error with WRT operations.
- *
- * @ WRT_ERR_UNKNOW
- *    An unknow error happened to WRT.
- *
- * @ WRT_ERR_INVALID_ARG
- *    Invalid arguments are passed into WRT functions.
- *
- * @ WRT_ERR_OUT_MEMORY
- *    No memory space available for WRT.
- *
- * @ WRT_ERR_NO_DISK_SPACE
- *    There is no disk space for widget applications.
- *
- *
- *
- *
- */
-enum WrtError
-{
-    /* General errors */
-    WRT_SUCCESS = WRT_GENERAL_ERRCODE + WRT_ERROR_SET(0x01),
-    WRT_ERR_UNKNOWN = WRT_GENERAL_ERRCODE + WRT_ERROR_SET(0x02),
-    WRT_ERR_INVALID_ARG = WRT_GENERAL_ERRCODE + WRT_ERROR_SET(0x03),
-    WRT_ERR_OUT_OF_MEMORY = WRT_GENERAL_ERRCODE + WRT_ERROR_SET(0x04),
-    WRT_ERR_NO_DISK_SPACE = WRT_GENERAL_ERRCODE + WRT_ERROR_SET(0x05),
-
-    /* Configuration */
-    WRT_CONF_ERR_GCONF_FAILURE = WRT_CONFIG_ERRCODE + WRT_ERROR_SET(0x01),
-    WRT_CONF_ERR_OBJ_MISSING = WRT_CONFIG_ERRCODE + WRT_ERROR_SET(0x02),
-    WRT_CONF_ERR_OBJ_EXIST = WRT_CONFIG_ERRCODE + WRT_ERROR_SET(0x03),
-    WRT_CONF_ERR_START_FILE_MISSING = WRT_CONFIG_ERRCODE + WRT_ERROR_SET(0x04),
-    WRT_CONF_ERR_EMDB_FAILURE = WRT_CONFIG_ERRCODE + WRT_ERROR_SET(0x05),
-    WRT_CONF_ERR_EMDB_NO_RECORD = WRT_CONFIG_ERRCODE + WRT_ERROR_SET(0x06),
-
-    /* Domain */
-    WRT_DOMAIN_ERR_CREATE_JS_RT = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x01),
-    WRT_DOMAIN_ERR_MSG_QUEUE = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x02),
-
-    /* Widget manager*/
-    WRT_WM_ERR_NOT_INSTALLED = WRT_WM_ERRCODE + WRT_ERROR_SET(0x01),
-    WRT_WM_ERR_HIGH_VER_INSTALLED = WRT_WM_ERRCODE + WRT_ERROR_SET(0x02),
-    WRT_WM_ERR_LOW_VER_INSTALLED = WRT_WM_ERRCODE + WRT_ERROR_SET(0x03),
-    WRT_WM_ERR_INVALID_ARCHIVE = WRT_WM_ERRCODE + WRT_ERROR_SET(0x04),
-    WRT_WM_ERR_INVALID_CERTIFICATION = WRT_WM_ERRCODE + WRT_ERROR_SET(0x05),
-    WRT_WM_ERR_NULL_CERTIFICATION = WRT_WM_ERRCODE + WRT_ERROR_SET(0x06),
-    WRT_WM_ERR_INSTALLATION_CANCEL = WRT_WM_ERRCODE + WRT_ERROR_SET(0x07),
-    WRT_WM_ERR_ALREADY_INSTALLED = WRT_WM_ERRCODE + WRT_ERROR_SET(0x08),
-    WRT_WM_ERR_INSTALL_FAILED = WRT_WM_ERRCODE + WRT_ERROR_SET(0x09),
-    WRT_WM_ERR_DELETE_BY_SERVER = WRT_WM_ERRCODE + WRT_ERROR_SET(0x0a),
-    WRT_WM_ERR_DEINSTALLATION_CANCEL = WRT_WM_ERRCODE + WRT_ERROR_SET(0x0b),
-    WRT_WM_ERR_INCORRECT_UPDATE_INFO = WRT_WM_ERRCODE + WRT_ERROR_SET(0x0c),
-    WRT_WM_ERR_UNREG_FAILED = WRT_WM_ERRCODE + WRT_ERROR_SET(0x0d),
-    WRT_WM_ERR_REMOVE_FILES_FAILED = WRT_WM_ERRCODE + WRT_ERROR_SET(0x0e),
-    WRT_WM_ERR_ALREADY_LATEST = WRT_WM_ERRCODE + WRT_ERROR_SET(0x0f),
-    WRT_WM_ERR_UPDATE_CANCEL = WRT_WM_ERRCODE + WRT_ERROR_SET(0x10),
-    WRT_WM_ERR_INVALID_APP_ID = WRT_WM_ERRCODE + WRT_ERROR_SET(0x11),
-
-    /* Access Control Manager */
-    WRT_SAI_ERR_INIT_ACE_FAILED = WRT_SAI_ERRCODE + WRT_ERROR_SET(0x01)
-};
-
-enum IGError
-{
-    /* General errors */
-    ERR_AUI_SUCCESS = WRT_SUCCESS,
-    ERR_WIDGET_INSTALL_SUCCESSFULLY = WRT_SUCCESS,
-    ERR_WIDGET_UNKNOWN = WRT_ERR_UNKNOWN,
-    ERR_AUI_ARG_INVALID = WRT_ERR_INVALID_ARG,
-    ERR_AUI_OUT_OF_MEMORY = WRT_ERR_OUT_OF_MEMORY,
-    ERR_WIDGET_NO_ENOUGH_SPACE = WRT_ERR_NO_DISK_SPACE,
-    ERR_AUI_ARG_NULL = WRT_GENERAL_ERRCODE + WRT_ERROR_SET(0x06),
-
-    /* Configuration */
-    ERR_AUI_CONF_GCONF_FAILURE = WRT_CONF_ERR_GCONF_FAILURE,
-    ERR_AUI_OBJ_NOT_FOUND = WRT_CONF_ERR_OBJ_MISSING,
-    ERR_AUI_OBJ_ALREADY_EXIST = WRT_CONF_ERR_OBJ_EXIST,
-    ERR_AUI_FILE_NOT_FOUND = WRT_CONF_ERR_START_FILE_MISSING,
-    ERR_AUI_CONF_EMDB_FAILURE = WRT_CONF_ERR_EMDB_FAILURE,
-    ERR_AUI_CONF_EMDB_NO_RECORD = WRT_CONF_ERR_EMDB_NO_RECORD,
-
-    /* Domain */
-    ERR_DM_JSRT_CRET = WRT_DOMAIN_ERR_CREATE_JS_RT,
-    ERR_DM_MSG_QUEUE = WRT_DOMAIN_ERR_MSG_QUEUE,
-    ERR_DM_EVAL_FAIL = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x03),
-    ERR_DM_INVALID_DOMAIN = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x04),
-    ERR_DM_INVALID_WIDGET = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x05),
-    ERR_DM_AC_GENERAL_FAIL = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x06),
-    ERR_DM_OUT_OF_RESOURCE = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x07),
-    ERR_DM_AC_SYSTEM_POLICY_CONFLICT = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x08),
-    ERR_DM_AC_WIDGET_POLICY_CONFLICT = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x09),
-    ERR_DM_THREAD_CRET = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x0a),
-    ERR_AUI_INVALID_TYPE = WRT_DOMAIN_ERRCODE + WRT_ERROR_SET(0x0b),
-
-    /* Widget manager*/
-    ERR_WIDGET_NOT_INSTALLED = WRT_WM_ERR_NOT_INSTALLED,
-    ERR_WIDGET_HIGH_VER_INSTALLED = WRT_WM_ERR_HIGH_VER_INSTALLED,
-    ERR_WIDGET_LOW_VER_INSTALLED = WRT_WM_ERR_LOW_VER_INSTALLED,
-    ERR_WIDGET_INVALID_ARCHIVE = WRT_WM_ERR_INVALID_ARCHIVE,
-    ERR_WIDGET_CERTIFICATION_FAILED = WRT_WM_ERR_INVALID_CERTIFICATION,
-    ERR_WIDGET_NULL_CERTIFICATION = WRT_WM_ERR_NULL_CERTIFICATION,
-    ERR_WIDGET_INSTALLATION_CANCEL = WRT_WM_ERR_INSTALLATION_CANCEL,
-    ERR_WIDGET_ALREADY_INSTALLED = WRT_WM_ERR_ALREADY_INSTALLED,
-    ERR_WIDGET_INSTALL_FAILED = WRT_WM_ERR_INSTALL_FAILED,
-    ERR_WIDGET_DELETE_BY_SERVER = WRT_WM_ERR_DELETE_BY_SERVER,
-    ERR_WIDGET_DEINSTALLATION_CANCEL = WRT_WM_ERR_DEINSTALLATION_CANCEL,
-    ERR_WIDGET_UPDATE_INFO_INCORRECT = WRT_WM_ERR_INCORRECT_UPDATE_INFO,
-    ERR_WIDGET_UNREG_FAILED = WRT_WM_ERR_UNREG_FAILED,
-    ERR_WIDGET_REMOVE_FILES_FAILED = WRT_WM_ERR_REMOVE_FILES_FAILED,
-    ERR_WIDGET_IS_LATEST = WRT_WM_ERR_ALREADY_LATEST,
-    ERR_WIDGET_UPDATE_CANCEL = WRT_WM_ERR_UPDATE_CANCEL,
-    ERR_WIDGET_INVALID_APP_ID = WRT_WM_ERR_INVALID_APP_ID,
-    ERR_WIDGET_NONE_FILES_EXIST = WRT_WM_ERRCODE + WRT_ERROR_SET(0x13),
-    ERR_WIDGET_INSTALL_SEARCH_EXCEPTION = WRT_WM_ERRCODE + WRT_ERROR_SET(0x14),
-    ERR_WIDGET_NOT_INIT = WRT_WM_ERRCODE + WRT_ERROR_SET(0x15),
-    ERR_WIDGET_NO_ARCHIVE = WRT_WM_ERRCODE + WRT_ERROR_SET(0x16),
-    ERR_WIDGET_SET_DEFAULT = WRT_WM_ERRCODE + WRT_ERROR_SET(0x17),
-    ERR_WIDGET_SET_VALUE = WRT_WM_ERRCODE + WRT_ERROR_SET(0x18)
-};
-
-//Just for debug, d.wei@samsung.com
-//#define WRT_WIDGETMGR_TEST
-
-#define  W3C_WORKING_DRAFT_9_NOVEMBER_2006_EXPENDED_SUPPORT
-
-#define WRT_WIDGET_API_TO_BE_REMOVED
-
-//#define WRT_EXTENDED_WIDGET_API
-
-#endif /* _WRT_ERROR_H_ */
-
diff --git a/src/domain/screen_user_data.h b/src/domain/screen_user_data.h
deleted file mode 100644 (file)
index f37bbf6..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- *    Licensed under the Apache License, Version 2.0 (the "License");
- *    you may not use this file except in compliance with the License.
- *    You may obtain a copy of the License at
- *
- *        http://www.apache.org/licenses/LICENSE-2.0
- *
- *    Unless required by applicable law or agreed to in writing, software
- *    distributed under the License is distributed on an "AS IS" BASIS,
- *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *    See the License for the specific language governing permissions and
- *    limitations under the License.
- */
-/*
- *
- * @file        screen_user_data.h
- * @author      Woosung Sohn (woosungim.sohn@samsung.com)
- * @version     1.0
- * @brief       Common set of structures and functions
- *              to pass throught void* userData parameter
- */
-
-#ifndef WRT_SCREEN_USER_DATA_H_
-#define WRT_SCREEN_USER_DATA_H_
-
-/**
- * @brief User parameters
- */
-typedef void *InitScreenParam;
-
-typedef void (*InitScreenSucceedCallback)(InitScreenParam data);
-typedef void (*InitScreenFailedCallback)(InitScreenParam data);
-
-
-struct WrtScreenData {
-    void* wrtClientContext;
-    InitScreenSucceedCallback initScreenSucceedCallback;
-    InitScreenFailedCallback initScreenFailedCallback;
-
-    WrtScreenData() :
-        wrtClientContext(NULL),
-        initScreenSucceedCallback(NULL),
-        initScreenFailedCallback(NULL)
-    {
-    }
-};
-
-#endif // WRT_SCREEN_USER_DATA_H_
\ No newline at end of file
diff --git a/src/domain/widget_launch_struct.h b/src/domain/widget_launch_struct.h
deleted file mode 100644 (file)
index c5a8b54..0000000
+++ /dev/null
@@ -1,194 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- *    Licensed under the Apache License, Version 2.0 (the "License");
- *    you may not use this file except in compliance with the License.
- *    You may obtain a copy of the License at
- *
- *        http://www.apache.org/licenses/LICENSE-2.0
- *
- *    Unless required by applicable law or agreed to in writing, software
- *    distributed under the License is distributed on an "AS IS" BASIS,
- *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *    See the License for the specific language governing permissions and
- *    limitations under the License.
- */
-/**
- * @file    widget_launch_struct.h
- * @author  Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
- * @version 1.0
- * @brief   Implementation file for widget launch struct
- */
-#ifndef WIDGET_LAUNCH_STRUCT_H
-#define WIDGET_LAUNCH_STRUCT_H
-
-#include <user_callback_controller.h>
-#include <common_error.h>
-#include "launch_user_data.h"
-#include "screen_user_data.h"
-#include <dpl/assert.h>
-#include <dpl/wrt-dao-ro/wrt_db_types.h>
-#include <dpl/wrt-dao-ro/widget_dao_read_only.h>
-#include <dpl/framework_efl.h>
-/**
- * @brief User parameters
- */
-typedef void *UserParam;
-
-/**
- * @brief User parameters passed to view
- *
- * View implementation dependent.
- * Pid is passed here
- */
-typedef void *LaunchContext;
-
-/**
- * @brief User parameters passed from view
- *
- * View implementation dependent.
- */
-typedef void *ResultContext;
-
-/**
- * @brief Lauch has finished callback
- *
- * Occurs when view has launched model view, and resulting context is available.
- * Note: Do not make any assumption wich thread this callback is called from.
- */
-typedef void (*LaunchFinishedCallback)(WidgetHandle widgetHandle,
-                                       CommonError::Type result,
-                                       const std::string& errorMsg,
-                                       UserParam userParam);
-
-typedef void (*OperationStatusCallback)(WidgetHandle widgetHandle,
-                                        CommonError::Type result,
-                                        UserParam userParam);
-
-typedef void (*InitStatusCallback)(CommonError::Type status, UserParam data);
-
-/**
- * @brief Init screen structure
- */
-struct InitScreenStruct
-{
-    int widgetHandle;
-    unsigned long pid;
-    WrtScreenData* userData;
-
-    InitScreenStruct() :
-        widgetHandle(0),
-        pid(0),
-        userData(NULL)
-    {
-    }
-
-    InitScreenStruct(int wh,
-            unsigned long id,
-            WrtScreenData* data) :
-        widgetHandle(wh),
-        pid(id),
-        userData(data)
-    {
-    }
-};
-
-typedef GenericUserCallbackCall1<InitScreenSucceedCallback,
-                                void *> InitScreenSucceedCallbackCall;
-
-typedef GenericUserCallbackCall1<InitScreenFailedCallback,
-                                void *> InitScreenFailedCallbackCall;
-
-/**
- * @brief Widget launch structure
- *
- * Structure describing parameters passed to widget model view.
- * Contains view implementation specific handle and user parameter
- * passed to LaunchFinishedCallback.
- */
-struct WidgetLaunchStruct
-{
-    LaunchContext launchContext;
-    LaunchFinishedCallback launchFinishedCallback;
-    UserParam userParam;
-    std::string widgetArg; //TODO make it Optional<String>
-    SDKDebugData* debugData;
-
-    WidgetLaunchStruct() :
-        launchContext(NULL),
-        launchFinishedCallback(NULL),
-        userParam(NULL),
-        debugData(NULL)
-    {
-    }
-
-    WidgetLaunchStruct(LaunchContext lc,
-            LaunchFinishedCallback lfc,
-            UserParam us,
-            SDKDebugData* sdkData,
-            const std::string &arg) :
-        launchContext(lc),
-        launchFinishedCallback(lfc),
-        userParam(us),
-        widgetArg(arg),
-        debugData(sdkData)
-    {
-    }
-};
-
-typedef GenericUserCallbackCall4<LaunchFinishedCallback,
-                                 WidgetHandle, CommonError::Type, std::string,
-                                 void *> LaunchFinishedCallbackCall;
-
-/**
- * @brief Operation status structure
- */
-struct OperationStatusStruct
-{
-    OperationStatusCallback operationStatusCallback;
-    UserParam userParam;
-
-    OperationStatusStruct() :
-        operationStatusCallback(NULL),
-        userParam(NULL)
-    {
-    }
-
-    OperationStatusStruct(OperationStatusCallback cb,
-            UserParam userParam) :
-        operationStatusCallback(cb),
-        userParam(userParam)
-    {
-    }
-};
-
-typedef GenericUserCallbackCall3<OperationStatusCallback, WidgetHandle,
-                                 CommonError::Type,
-                                 void *> OperationStatusCallbackCall;
-
-/**
- * @brief Initialization status structure
- */
-struct InitStatusStruct
-{
-    InitStatusCallback initStatusCallback;
-    UserParam userParam;
-
-    InitStatusStruct() :
-        initStatusCallback(NULL),
-        userParam(NULL)
-    {
-    }
-
-    InitStatusStruct(InitStatusCallback cb,
-            UserParam userParam) :
-        initStatusCallback(cb),
-        userParam(userParam)
-    {
-    }
-};
-
-typedef GenericUserCallbackCall2<InitStatusCallback, CommonError::Type, void *>
-        InitStatusCallbackCall;
-
-#endif // WIDGET_LAUNCH_STRUCT_H