Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        E.h Makefile.am ipc.c 
Removed Files:
        modules.c 


Log Message:
Remove unused modules.c.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.209
retrieving revision 1.210
diff -u -3 -r1.209 -r1.210
--- E.h 17 Feb 2004 23:28:25 -0000      1.209
+++ E.h 18 Feb 2004 18:45:25 -0000      1.210
@@ -2356,14 +2356,6 @@
 void                Quicksort(void **a, int l, int r,
                              int (*CompareFunc) (void *d1, void *d2));
 
-/* modules.c */
-int                 LoadModule(char *module_name);
-int                 UnloadModule(char *module_name);
-char               *ModuleErrorCodeToString(int error_code);
-char               *ModuleListAsString(void);
-int                 IsLoadedModule(char *module_name);
-char               *FindModulePath(char *module_name);
-
 /* moveresize.c */
 int                 ActionMoveStart(EWin * ewin, void *params, char constrained,
                                    int nogroup);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/Makefile.am,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- Makefile.am 8 Feb 2004 16:17:58 -0000       1.29
+++ Makefile.am 18 Feb 2004 18:45:36 -0000      1.30
@@ -55,7 +55,6 @@
        memory.c                \
        menus.c                 \
        misc.c                  \
-       modules.c               \
        moveresize.c            \
        mwm.c                   \
        pager.c                 \
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ipc.c,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -3 -r1.137 -r1.138
--- ipc.c       11 Feb 2004 15:27:52 -0000      1.137
+++ ipc.c       18 Feb 2004 18:45:36 -0000      1.138
@@ -85,7 +85,6 @@
 static void         IPC_PlaySoundClass(char *params, Client * c);
 static void         IPC_ListClassMembers(char *params, Client * c);
 static void         IPC_GeneralInfo(char *params, Client * c);
-static void         IPC_Modules(char *params, Client * c);
 static void         IPC_DockConfig(char *params, Client * c);
 static void         IPC_MemDebug(char *params, Client * c);
 static void         IPC_Remember(char *params, Client * c);
@@ -478,11 +477,6 @@
     "use \"general_info <info>\" to retrieve information\n"
     "available info is: screen_size"},
    {
-    IPC_Modules,
-    "module", NULL,
-    "Load/Unload/List Modules",
-    NULL},
-   {
     IPC_ReloadMenus,
     "reload_menus", NULL,
     "Reload menus.cfg without restarting (Asmodean_)",
@@ -779,87 +773,6 @@
 }
 
 static void
-IPC_Modules(char *params, Client * c)
-{
-   char                buf[FILEPATH_LEN_MAX];
-
-   buf[0] = 0;
-
-   if (params)
-     {
-       char                param1[FILEPATH_LEN_MAX];
-       char                param2[FILEPATH_LEN_MAX];
-       char                param3[FILEPATH_LEN_MAX];
-
-       param1[0] = 0;
-       param2[0] = 0;
-       param3[0] = 0;
-
-       word(params, 1, param1);
-       word(params, 2, param2);
-       word(params, 3, param3);
-       if (!strcmp(param1, "load"))
-         {
-            if (!param2[0])
-              {
-                 Esnprintf(buf, sizeof(buf), "Error: no module specified");
-              }
-            else
-              {
-                 int                 returncode = 0;
-
-                 if ((returncode = LoadModule(param2)))
-                   {
-                      strcat(buf, ModuleErrorCodeToString(returncode));
-                   }
-              }
-         }
-       else if (!strcmp(param1, "unload"))
-         {
-            if (!param2[0])
-              {
-                 Esnprintf(buf, sizeof(buf), "Error: no module specified");
-              }
-            else
-              {
-                 int                 returncode = 0;
-
-                 if ((returncode = UnloadModule(param2)))
-                   {
-                      strcat(buf, ModuleErrorCodeToString(returncode));
-#if 0                          /* What ?!? */
-                      if (!buf[0])
-                        {
-                           Esnprintf(buf, sizeof(buf), "");
-                        }
-#endif
-                   }
-              }
-         }
-       else if (!strcmp(param1, "list"))
-         {
-            strcat(buf, ModuleListAsString());
-            if (!buf[0])
-              {
-                 Esnprintf(buf, sizeof(buf), "no modules loaded");
-              }
-         }
-       else
-         {
-            Esnprintf(buf, sizeof(buf),
-                      "Error: unknown module operation specified");
-         }
-     }
-   else
-     {
-       Esnprintf(buf, sizeof(buf), "Error: no module operation specified");
-     }
-
-   if (buf[0])
-      CommsSend(c, buf);
-}
-
-static void
 IPC_DockConfig(char *params, Client * c)
 {
    char                buf[FILEPATH_LEN_MAX];




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to