Cleanups.

SVN revision: 34085
This commit is contained in:
Kim Woelders 2008-03-22 15:00:07 +00:00
parent 2e13af4ea9
commit c4b035680b
10 changed files with 4 additions and 101 deletions

View File

@ -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

View File

@ -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])

View File

@ -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);

View File

@ -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)
{

View File

@ -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);

View File

@ -670,7 +670,7 @@ EwinStateUpdate(EWin * ewin)
SnapshotEwinUpdate(ewin, SNAP_USE_FLAGS);
}
void
static void
AddToFamily(EWin * ewin, Window xwin)
{
EWin *ewin2;

View File

@ -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);

View File

@ -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,

View File

@ -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,

View File

@ -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)