From: Rahul Dadhich Date: Mon, 26 Sep 2016 11:43:58 +0000 (+0530) Subject: [TIZEN_3.0 CODE REFACTOR] Removed unused header file code X-Git-Tag: submit/tizen_mobile/20160927.154357~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63e35086825dae1f1d411cabe7fde965b51cc9d9;p=profile%2Fmobile%2Fapps%2Fnative%2Fug-gallery-efl.git [TIZEN_3.0 CODE REFACTOR] Removed unused header file code Change-Id: I83e1dd58f414d521b33cb8ed8f86e9c468812772 Signed-off-by: Rahul Dadhich --- diff --git a/inc/gallery-efl.h b/inc/gallery-efl.h index 1782956..41a84b0 100644 --- a/inc/gallery-efl.h +++ b/inc/gallery-efl.h @@ -38,7 +38,6 @@ static inline char* full_path(char *str1, char *str2) { #define GE_DEFAULT_YEAR 1900 -#define GALLERY_APP_ICON_DIR "/usr/share/icons/default/small/" #define GE_UG_RES_DIR ge_get_resource_path() #define GE_IMAGES_DIR full_path(GE_UG_RES_DIR, "edje/images/") #define GE_EDJ_DIR full_path(GE_UG_RES_DIR, "edje/") @@ -46,10 +45,6 @@ static inline char* full_path(char *str1, char *str2) { #define GE_GRP_GRIDVIEW "gallery_efl/gridview" #define GE_GRP_ALBUMVIEW "gallery_efl/albumview" -#define GE_CBAR_STYLE_DEFAULT "gallery_efl/default" -#define GE_NAVIFRAME_STYLE_DEFAULT "gallery_efl/default" -#define GE_CHECKBOX_STYLE_GRID "gallery_efl/grid" - #define GE_BUNDLE_LAUNCH_TYPE "launch-type" #define GE_BUNDLE_SELECTION_MODE_SINGLE "single" #define GE_BUNDLE_SELECTION_MODE_MULTI "multiple" @@ -59,21 +54,14 @@ static inline char* full_path(char *str1, char *str2) { #define GE_LAUNCH_SELECT_ALBUM "select-album" -#define GE_ALBUM_SELECT_RETURN_ID "album-id" -#define GE_ALBUM_SELECT_RETURN_PATH "folder-path" - #define GE_LAUNCH_SELECT_ONE "select-one" #define GE_LAUNCH_SELECT_MULTIPLE "select-multiple" #define GE_LAUNCH_SELECT_SETAS "select-setas" -#define GE_LAUNCH_SELECT_IMFT "select-imft" #define GE_FILE_TYPE_IMAGE "image" #define GE_FILE_TYPE_VIDEO "video" #define GE_FILE_TYPE_ALL "all" -#define GE_SETAS_WALLPAPER "wallpaper" -#define GE_SETAS_LOCKSCREEN "lockscreen" -#define GE_SETAS_WALLPAPER_AND_LOCKSCREEN "wallpaper and lockscreen" #define GE_SETAS_CROP_WALLPAPER "crop" #define GE_SETAS_CALLERID "callerid" @@ -81,8 +69,6 @@ static inline char* full_path(char *str1, char *str2) { #define GE_FILE_SELECT_RETURN_PATH "path" #define GE_SETAS_IMAGE_PATH "image-path" -#define GE_BUNDLE_HOMESCREEN_PATH "homescreen_path" -#define GE_BUNDLE_LOCKSCREEN_PATH "lockscreen_path" #define GE_IMAGEVIEWER_RETURN_ERROR "Error" /* MIME type */ diff --git a/inc/ge-data-util.h b/inc/ge-data-util.h index cc39d97..e893d29 100644 --- a/inc/ge-data-util.h +++ b/inc/ge-data-util.h @@ -53,10 +53,7 @@ extern "C" { #define GE_DCIM "DCIM" #define GE_ALBUM_ALL_ID "GALLERY_ALBUM_ALL_ALBUMS_ID" -/* String length of mtye item id */ -#define GE_MTYPE_ITEN_ID_LEN_MAX 37 -#define GE_BASE_WIN_WIDTH 720 #define GE_BASE_WIN_HEIGHT 1280 /* Indicator + naviframe title + naviframe bottom toobar */ #define GE_FIXED_HEIGHT_HIDE (111 + 98) @@ -64,24 +61,13 @@ extern "C" { #define GE_GRID_ITEM_SIZE_W 202 #define GE_GRID_ITEM_SIZE_H 202 -#define GE_GRID_ITEM_ZOOM_LEVEL_02 2 -#define GE_GRID_ITEM_ZOOM_LEVEL_02_CNT 8 #define GE_ALBUM_COVER_THUMB_NUM 1 -#define GE_SELINFO_TEXT_LEN_MAX 64 -#define GE_ALBUM_DATE_LEN_MAX 256 -#define GE_VIDEO_DURATION_MAX 256 #define GE_NOCONTENTS_LABEL_LEN_MAX 512 #define GE_FILE_PATH_LEN_MAX (4095 * GE_MAX_BYTES_FOR_CHAR + 1) #define GE_DIR_PATH_LEN_MAX GE_FILE_PATH_LEN_MAX -#define GE_TIME_SECOND_MILLISECOND 1000 // 1s=1000ms -#define GE_TIME_USEC_PER_SEC 1000000L -#define GE_TIME_MINUTE_SECOND 60 // 1min=60s -#define GE_TIME_HOUR_MINUTE 60 // 1h=60min -#define GE_TIME_HOUR_SECOND (GE_TIME_HOUR_MINUTE * GE_TIME_MINUTE_SECOND) // 1h=(60x60)s - #define GE_FIRST_VIEW_START_POS 0 #define GE_GET_ONE_RECORD 1 #define GE_FIRST_VIEW_END_POS 47 diff --git a/inc/ge-icon.h b/inc/ge-icon.h index 595de88..c670b9e 100644 --- a/inc/ge-icon.h +++ b/inc/ge-icon.h @@ -22,7 +22,6 @@ #define GE_IMAGES_EDJ_FILE full_path(GE_EDJ_DIR, "images/gallery-efl-images.edj") -#define GE_DEFAULT_APP_ICON GALLERY_APP_ICON_DIR"org.tizen.gallery.png" #define GE_ALBUM_ICON_CAMERA "T01_album_icon_camera.png" #define GE_ALBUM_ICON_DOWNLOAD "T01_album_icon_download.png" #define GE_ALBUM_ICON_FOLDER "T01_album_icon_folder.png" diff --git a/inc/ge-tile.h b/inc/ge-tile.h index a176509..befbc7c 100644 --- a/inc/ge-tile.h +++ b/inc/ge-tile.h @@ -21,19 +21,15 @@ #include "ge-data.h" #define GE_TILE_ICON "elm.swallow.icon" -#define GE_TILE_LABEL "label_bg" #define GE_TILE_TYPE_ICON "elm.swallow.type_icon" #define GE_SD_CARD_TYPE_ICON "ug_sd_icon" /* type for showing different icon in typeicon part in edc */ typedef enum _ge_tile_type { GE_TILE_TYPE_NONE, - GE_TILE_TYPE_FACEBOOK, /* Facebook album */ - GE_TILE_TYPE_CLOUD, /* Cloud album */ GE_TILE_TYPE_CAMERA, /* Camera album */ GE_TILE_TYPE_DOWNLOAD, /* Download album */ GE_TILE_TYPE_FOLDER, /* Folder album */ - GE_TILE_TYPE_PEOPLE, /* People album */ GE_TILE_TYPE_MMC, /* MMC album */ } ge_tile_type; diff --git a/inc/ge-timeline.h b/inc/ge-timeline.h index 2bb0b3f..7e79805 100644 --- a/inc/ge-timeline.h +++ b/inc/ge-timeline.h @@ -36,11 +36,9 @@ #include "ge-gridview.h" int _ge_timeline_create_view(void *data, Evas_Object *parent); -int _ge_timeline_update_view(void *data); int _ge_timeline_update_lang(void *data); -int _ge_timeline_view_rotate(void *data); -int _ge_timeline_rotate_view(void *data); bool __ge_update_timeline(void *data); +int _ge_timeline_view_rotate(void *data); void _ge_update_timeview_iv_select_mode_reply(void *data, char **select_result, int count); int _ge_ext_load_time_iv_selected_list(app_control_h service, void *data); diff --git a/inc/ge-ui-util.h b/inc/ge-ui-util.h index f446740..7000273 100644 --- a/inc/ge-ui-util.h +++ b/inc/ge-ui-util.h @@ -27,14 +27,9 @@ extern "C" { #endif -#define GE_BTN_NAVI_PRE "naviframe/back_btn/default" -#define GE_BTN_NAVI_TOOLBAR "naviframe/toolbar/default" -#define GE_NAVIFRAME_BTN1 "toolbar_button1" #define GE_NAVIFRAME_TITLE_RIGHT_BTN "title_right_btn" #define GE_NAVIFRAME_TITLE_LEFT_BTN "title_left_btn" #define GE_BTN_POPUP "popup" -#define GE_NAVIFRAME_PREB_BTN "prev_btn" -#define GE_BUTTON_STYLE_NAVI_TITLE_ICON "naviframe/title_icon" typedef enum { GE_POPUP_ONEBUT, @@ -44,7 +39,6 @@ Evas_Object* ge_ui_create_naviframe(ge_ugdata *ugd, Evas_Object *parent); Evas_Object *ge_ui_create_main_ly(Evas_Object *parent); Evas_Object* ge_ui_load_edj(Evas_Object *parent, const char *file, const char *group); Evas_Object* ge_ui_create_nocontents(ge_ugdata* ugd); -int ge_ui_lock_albums(ge_cluster* album_item); Evas_Object* ge_ui_create_popup(ge_ugdata* ugd, ge_popup_mode_e mode, char* desc); int _ge_ui_create_notiinfo(const char *text); diff --git a/inc/ge-util.h b/inc/ge-util.h index 4503e40..6cb7647 100644 --- a/inc/ge-util.h +++ b/inc/ge-util.h @@ -29,7 +29,6 @@ elm_image_file_set(icon, GE_IMAGES_EDJ_FILE, img) -void _ge_set_current_item(ge_item* gitem); int ge_reg_db_update_noti(ge_ugdata* ugd); int ge_dereg_db_update_noti(void); Eina_Bool ge_update_view(ge_ugdata* ugd); @@ -38,7 +37,6 @@ ge_view_mode _ge_get_view_mode(ge_ugdata *ugd); int _ge_set_view_mode(ge_ugdata *ugd, ge_view_mode mode); double _ge_get_win_factor(Evas_Object *win, bool b_hide_indicator, int *width, int *height); -int _ge_addhome_image(ge_ugdata *ugd, char *path); int _ge_send_result(ge_ugdata *ugd); int _ge_atoi(const char *number); char *_ge_str(char *str_id); diff --git a/src/view/ge-gridview.c b/src/view/ge-gridview.c index 2d94706..b441f6d 100644 --- a/src/view/ge-gridview.c +++ b/src/view/ge-gridview.c @@ -599,7 +599,7 @@ static Evas_Object *__ge_grid_get_content(void *data, Evas_Object *obj, const ch if (GE_FILE_EXISTS(gitem->item->thumb_url)) { path = gitem->item->thumb_url; } else { - path = GE_ICON_NO_THUMBNAIL; + path = GE_ICON_CONTENTS_BROKEN; } bool b_favor = false; diff --git a/src/view/ge-timeline.c b/src/view/ge-timeline.c index 8583224..94886b8 100644 --- a/src/view/ge-timeline.c +++ b/src/view/ge-timeline.c @@ -774,7 +774,7 @@ Evas_Object *_ge_timeline_thumbs_get_content(void *data, Evas_Object *parent, path = item->thumb_url; } else { /* Use default image */ - path = GE_ICON_NO_THUMBNAIL; + path = GE_ICON_CONTENTS_BROKEN; } if (item->type == MEDIA_CONTENT_TYPE_VIDEO) {