summaryrefslogtreecommitdiff
path: root/src/ug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ug.c')
-rw-r--r--src/ug.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/ug.c b/src/ug.c
index 8f2fb9f..a32f752 100644
--- a/src/ug.c
+++ b/src/ug.c
@@ -97,23 +97,6 @@ UG_API ui_gadget_h ug_create(ui_gadget_h parent,
return ugman_ug_load(parent, name, mode, app_control, cbs);
}
-#ifndef UG_WAYLAND
-UG_API int ug_init(void *disp, unsigned long xid, void *win, enum ug_option opt)
-{
- if (!win || !xid || !disp) {
- _ERR("ug_init() failed: Invalid arguments");
- return -1;
- }
-
- if (opt < UG_OPT_INDICATOR_ENABLE || opt >= UG_OPT_MAX) {
- _ERR("ug_init() failed: Invalid option");
- return -1;
- }
-
- return ugman_init((Display *)disp, (Window)xid, win, opt);
-}
-#else
-
/* LCOV_EXCL_START */
UG_API int ug_init(void *disp, unsigned long xid, void *win, enum ug_option opt)
{
@@ -125,7 +108,6 @@ UG_API int ug_init(void *disp, unsigned long xid, void *win, enum ug_option opt)
return ugman_init(win, opt);
}
/* LCOV_EXCL_STOP */
-#endif
/* LCOV_EXCL_START */
UG_API int UG_INIT_EFL(void *win, enum ug_option opt)