diff --git a/src/comms.c b/src/comms.c index fa645d55..043d1dde 100644 --- a/src/comms.c +++ b/src/comms.c @@ -340,56 +340,3 @@ CommsSend(Client * c, const char *s) CommsDoSend(c->xwin, s); } - -#if 0 /* Unused */ -/* - * When we are running in multi-head, connect to the master wm process - * and send the message - */ -void -CommsSendToMasterWM(const char *s) -{ - if (Mode.wm.master) - return; - - CommsDoSend(RootWindow(disp, Mode.wm.master_screen), s); -} - -/* - * When we are running in multi-head, connect to the slave wm processes - * and broadcast the message - */ -void -CommsBroadcastToSlaveWMs(const char *s) -{ - int screen; - - if (!Mode.wm.master || Mode.wm.single) - return; - - for (screen = 0; screen < Mode.display.screens; screen++) - { - if (screen != Mode.wm.master_screen) - CommsDoSend(RootWindow(disp, screen), s); - } -} - -void -CommsBroadcast(const char *s) -{ - char **l; - int num, i; - Client *c; - - l = ListItems(&num, LIST_TYPE_CLIENT); - if (!s) - return; - for (i = 0; i < num; i++) - { - c = FindItem(l[i], 0, LIST_FINDBY_NAME, LIST_TYPE_CLIENT); - if (c) - CommsSend(c, s); - } - StrlistFree(l, num); -} -#endif diff --git a/src/cursors.c b/src/cursors.c index 93558964..49231db8 100644 --- a/src/cursors.c +++ b/src/cursors.c @@ -137,7 +137,7 @@ _ECursorMatchName(const void *data, const void *match) return strcmp(((const ECursor *)data)->name, (const char *)match); } -ECursor * +static ECursor * ECursorFind(const char *name) { if (!name || !name[0]) diff --git a/src/cursors.h b/src/cursors.h index 781b5b34..7bde3cc2 100644 --- a/src/cursors.h +++ b/src/cursors.h @@ -41,7 +41,6 @@ #define ECSR_ACT_RESIZE_BR 11 #define ECSR_COUNT 12 -ECursor *ECursorFind(const char *name); ECursor *ECursorAlloc(const char *name); void ECursorFree(ECursor * ec); void ECursorApply(ECursor * ec, Win win); diff --git a/src/emodule.c b/src/emodule.c index 9a7a0410..16b0318a 100644 --- a/src/emodule.c +++ b/src/emodule.c @@ -60,25 +60,6 @@ EModuleFind(const char *name) return NULL; } -#if 0 /* Unused */ -static void -EModuleCommand(const EModule * em, const char *cmd, const char *prm) -{ - int i; - int ni = em->ipc.num; - const IpcItem *pi = em->ipc.lst; - - for (i = 0; i < ni; i++) - { - if (strcasecmp(cmd, pi->name) && (!pi->nick || strcmp(cmd, pi->nick))) - continue; - - pi->func(prm); - break; - } -} -#endif - int ModuleConfigSet(const char *name, const char *item, const char *params) { @@ -146,22 +127,6 @@ ModuleConfigShow(const char *name, const char *item) return 0; } -#if 0 /* Unused */ -int -ModuleCommand(const char *name, const char *cmd, const char *params) -{ - const EModule *em; - - em = EModuleFind(name); - if (!em) - return -1; - - EModuleCommand(em, cmd, params); - - return 0; -} -#endif - void ModulesSignal(int sig, void *prm) { diff --git a/src/emodule.h b/src/emodule.h index 10e0814e..64dffa1f 100644 --- a/src/emodule.h +++ b/src/emodule.h @@ -77,8 +77,6 @@ void ModuleListFree(const EModule ** lst); int ModuleConfigSet(const char *name, const char *item, const char *params); int ModuleConfigShow(const char *name, const char *item); -int ModuleCommand(const char *name, const char *cmd, - const char *params); void ModulesSignal(int signal, void *prm); void ModulesConfigShow(void); diff --git a/src/ewins.c b/src/ewins.c index dec38392..a8e06622 100644 --- a/src/ewins.c +++ b/src/ewins.c @@ -670,7 +670,7 @@ EwinStateUpdate(EWin * ewin) SnapshotEwinUpdate(ewin, SNAP_USE_FLAGS); } -void +static void AddToFamily(EWin * ewin, Window xwin) { EWin *ewin2; diff --git a/src/ewins.h b/src/ewins.h index 12d15a21..b94715af 100644 --- a/src/ewins.h +++ b/src/ewins.h @@ -370,7 +370,6 @@ void EwinGetPosition(const EWin * ewin, int x, int y, int bw, void EwinUpdateShapeInfo(EWin * ewin); void EwinPropagateShapes(EWin * ewin); void EwinStateUpdate(EWin * ewin); -void AddToFamily(EWin * ewin, Window win); EWin *AddInternalToFamily(Win win, const char *bname, int type, const EWinOps * ops, void *ptr); void EwinReparent(EWin * ewin, Win parent); @@ -410,7 +409,6 @@ void SlideEwinTo(EWin * ewin, int fx, int fy, int tx, int ty, int speed, int mode); void SlideEwinsTo(EWin ** ewin, int *fx, int *fy, int *tx, int *ty, int num_wins, int speed, int mode); -void EwinFixPosition(EWin * ewin); void EwinMove(EWin * ewin, int x, int y); void EwinResize(EWin * ewin, int w, int h); void EwinMoveResize(EWin * ewin, int x, int y, int w, int h); @@ -471,9 +469,7 @@ void EwinSyncRequestWait(EWin * ewin); /* moveresize.c */ int ActionMoveStart(EWin * ewin, char constrained, int nogroup); -int ActionMoveEnd(EWin * ewin); int ActionResizeStart(EWin * ewin, int hv); -int ActionResizeEnd(EWin * ewin); int ActionsSuspend(void); int ActionsResume(void); diff --git a/src/hints.h b/src/hints.h index a9405000..2dc3053b 100644 --- a/src/hints.h +++ b/src/hints.h @@ -144,7 +144,6 @@ int ICCCM_ProcessClientClientMessage(EWin * ewin, int ICCCM_ProcessRootClientMessage(XClientMessageEvent * event); void ICCCM_GetTitle(EWin * ewin); void ICCCM_Delete(const EWin * ewin); -void ICCCM_Save(const EWin * ewin); void ICCCM_Iconify(const EWin * ewin); void ICCCM_DeIconify(const EWin * ewin); void ICCCM_SizeMatch(const EWin * ewin, int wi, int hi, int *pwo, diff --git a/src/menus.h b/src/menus.h index dd7c017f..90403665 100644 --- a/src/menus.h +++ b/src/menus.h @@ -42,7 +42,6 @@ Menu *MenuCreate(const char *name, const char *title, void MenuDestroy(Menu * m); void MenuHide(Menu * m); void MenuEmpty(Menu * m, int destroying); -void MenuRepack(Menu * m); int MenuLoad(Menu * m); Menu *MenuFind(const char *name, const char *param); MenuItem *MenuItemCreate(const char *text, ImageClass * ic, diff --git a/src/moveresize.c b/src/moveresize.c index e17ee546..f87ebd63 100644 --- a/src/moveresize.c +++ b/src/moveresize.c @@ -133,7 +133,7 @@ ActionMoveStart(EWin * ewin, char constrained, int nogroup) return 0; } -int +static int ActionMoveEnd(EWin * ewin) { EWin **gwins; @@ -422,7 +422,7 @@ ActionResizeStart(EWin * ewin, int hv) return 0; } -int +static int ActionResizeEnd(EWin * ewin) { if (ewin && ewin != Mode_mr.ewin)