This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit 5efba6f8a32ef290edcbc88f3f0fa4a8564c0518
Author: rafspiny <rafsp...@gmail.com>
AuthorDate: Tue Jan 23 22:21:21 2024 +0100

    Remove unused code
---
 src/modules/convertible/e-gadget-convertible.c | 8 --------
 src/modules/convertible/e-gadget-convertible.h | 5 +++--
 src/modules/convertible/e_mod_config.h         | 1 -
 src/modules/convertible/e_mod_main.c           | 1 -
 4 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/src/modules/convertible/e-gadget-convertible.c b/src/modules/convertible/e-gadget-convertible.c
index a00edefef..3dc83f028 100644
--- a/src/modules/convertible/e-gadget-convertible.c
+++ b/src/modules/convertible/e-gadget-convertible.c
@@ -5,9 +5,6 @@
 #include "e-gadget-convertible.h"
 #include "e_mod_main.h"
 
-/* LIST OF INSTANCES */
-static Eina_List *instances = NULL;
-
 static void
 _update_instances(const Instance *current_instance)
 {
@@ -45,8 +42,3 @@ _keyboard_signal_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const
 {
    DBG("Keyboard: Signal %s received from %s", sig, src);
 }
-
-void
-update_instances(Eina_List *new_instances) {
-   instances = new_instances;
-}
diff --git a/src/modules/convertible/e-gadget-convertible.h b/src/modules/convertible/e-gadget-convertible.h
index 02f911d7e..ba0976f9c 100644
--- a/src/modules/convertible/e-gadget-convertible.h
+++ b/src/modules/convertible/e-gadget-convertible.h
@@ -8,6 +8,9 @@
 #ifndef E_GADGET_CONVERTIBLE_E_GADGET_CONVERTIBLE_H
 #define E_GADGET_CONVERTIBLE_E_GADGET_CONVERTIBLE_H
 
+/* LIST OF INSTANCES */
+Eina_List *instances = NULL;
+
 /* gadcon callback for actions */
 void
 _rotation_signal_cb(void *data EINA_UNUSED, Evas_Object *obj, const char *sig EINA_UNUSED, const char *src EINA_UNUSED);
@@ -15,8 +18,6 @@ _rotation_signal_cb(void *data EINA_UNUSED, Evas_Object *obj, const char *sig EI
 void
 _keyboard_signal_cb(void *data EINA_UNUSED, Evas_Object *obj, const char *sig EINA_UNUSED, const char *src EINA_UNUSED);
 
-void
-update_instances(Eina_List *instances);
 /* end gadcon callback for actions */
 
 
diff --git a/src/modules/convertible/e_mod_config.h b/src/modules/convertible/e_mod_config.h
index 2e0b98ea9..9f424ab19 100644
--- a/src/modules/convertible/e_mod_config.h
+++ b/src/modules/convertible/e_mod_config.h
@@ -18,7 +18,6 @@ typedef struct _Convertible_Config Convertible_Config;
 struct _Convertible_Config
 {
    int version;
-   E_Module *module;
    int disable_keyboard_on_rotation;
 };
 
diff --git a/src/modules/convertible/e_mod_main.c b/src/modules/convertible/e_mod_main.c
index 9660c057e..03a3c1920 100644
--- a/src/modules/convertible/e_mod_main.c
+++ b/src/modules/convertible/e_mod_main.c
@@ -74,7 +74,6 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
    instance->o_button = evas_object;
 
    instances = eina_list_append(instances, instance);
-   update_instances(instances);
 
    gcc = e_gadcon_client_new(gc, name, id, style, evas_object);
    gcc->data = ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to