Do not check initialized flag.
authorSung-jae Park <nicesj.park@samsung.com>
Fri, 8 Aug 2014 15:19:10 +0000 (00:19 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Fri, 8 Aug 2014 15:19:10 +0000 (00:19 +0900)
It is already initialized by app-core

Change-Id: I62bba8fa438497e39bb8f9a7c7f65fdf75c45fa7

packaging/com.samsung.data-provider-slave.spec
src/util_x11.c

index b27cc41..d9c946c 100644 (file)
@@ -3,7 +3,7 @@
 
 Name: com.samsung.data-provider-slave
 Summary: Plugin type livebox service provider
-Version: 0.17.3
+Version: 0.17.4
 Release: 1
 Group: HomeTF/Livebox
 License: Flora
index 9ef4d9a..5eb695f 100644 (file)
@@ -5,12 +5,6 @@
 #include "util.h"
 #include "debug.h"
 
-static struct info {
-       int initialized;
-} s_info = {
-       .initialized = 0,
-};
-
 void *util_screen_get(void)
 {
        return ecore_x_display_get();
@@ -18,23 +12,17 @@ void *util_screen_get(void)
 
 int util_screen_size_get(int *width, int *height)
 {
-       if (!s_info.initialized) {
-               ErrPrint("Not initialized\n");
-               return LB_STATUS_ERROR_FAULT;
-       }
        ecore_x_window_size_get(0, width, height);
        return LB_STATUS_SUCCESS;
 }
 
 int util_screen_init(void)
 {
-       s_info.initialized = 1;
        return ecore_x_init(NULL);
 }
 
 int util_screen_fini(void)
 {
-       s_info.initialized = 0;
        return ecore_x_shutdown();
 }