diff options
author | Tim Wiederhake <twied@gmx.net> | 2023-12-27 23:08:57 +0100 |
---|---|---|
committer | Tim Wiederhake <twied@gmx.net> | 2024-01-01 12:21:24 +0100 |
commit | 9f68ff072905dba3197deae8d8b275bbacd3f728 (patch) | |
tree | 66e0a9bf6a4daeeb57f4e000023a1582afd89f06 | |
parent | a752fdad02f5eba89c53a53e4a212cf31cbf4670 (diff) |
Remove disabled code
Signed-off-by: Tim Wiederhake <twied@gmx.net>
-rw-r--r-- | src/icons.c | 29 | ||||
-rw-r--r-- | src/menus.c | 24 |
2 files changed, 0 insertions, 53 deletions
diff --git a/src/icons.c b/src/icons.c index 6a04e7b..f4fde40 100644 --- a/src/icons.c +++ b/src/icons.c @@ -308,35 +308,6 @@ AddIconRegion(char *geom, int grav1, int grav2, int stepx, int stepy) ir->entries->used = 0; } -#ifdef comment -void -FreeIconEntries(IconRegion *ir) -{ - IconEntry *ie, *tmp; - - for (ie = ir->entries; ie; ie = tmp) { - tmp = ie->next; - free(ie); - } -} - -void -FreeIconRegions(void) -{ - IconRegion *ir; - - for (ir = Scr->FirstRegion; ir != NULL;) { - IconRegion *tmp = ir; - - FreeIconEntries(ir); - ir = ir->next; - free(tmp); - } - Scr->FirstRegion = NULL; - Scr->LastRegion = NULL; -} -#endif - void CreateIconWindow(TwmWindow *tmp_win, int def_x, int def_y) { diff --git a/src/menus.c b/src/menus.c index e27df43..4b5dd62 100644 --- a/src/menus.c +++ b/src/menus.c @@ -1118,41 +1118,17 @@ resizeFromCenter(Window w, TwmWindow *tmp_win) int lastx, lasty, bw2; XEvent event; -#if 0 - int namelen; - int width, height; - - namelen = strlen(tmp_win->name); -#endif bw2 = tmp_win->frame_bw * 2; AddingW = tmp_win->attr.width + bw2; AddingH = tmp_win->attr.height + tmp_win->title_height + bw2; -#if 0 - width = (SIZE_HINDENT + MyFont_TextWidth(&Scr->SizeFont, - tmp_win->name, namelen)); - height = Scr->SizeFont.height + SIZE_VINDENT * 2; -#endif XGetGeometry(dpy, w, &JunkRoot, &origDragX, &origDragY, (unsigned int *) &DragWidth, (unsigned int *) &DragHeight, &JunkBW, &JunkDepth); XWarpPointer(dpy, None, w, 0, 0, 0, 0, DragWidth / 2, DragHeight / 2); XQueryPointer(dpy, Scr->Root, &JunkRoot, &JunkChild, &JunkX, &JunkY, &AddingX, &AddingY, &JunkMask); -#if 0 - Scr->SizeStringOffset = width + MyFont_TextWidth(&Scr->SizeFont, ": ", 2); - XResizeWindow(dpy, Scr->SizeWindow, Scr->SizeStringOffset + - Scr->SizeStringWidth, height); - MyFont_DrawImageString(dpy, Scr->SizeWindow, &Scr->SizeFont, Scr->NormalGC, - width, SIZE_VINDENT + Scr->SizeFont.ascent, ": ", 2); -#endif lastx = -10000; lasty = -10000; -#if 0 - MoveOutline(Scr->Root, - origDragX - JunkBW, origDragY - JunkBW, - DragWidth * JunkBW, DragHeight * JunkBW, - tmp_win->frame_bw, tmp_win->title_height); -#endif MenuStartResize(tmp_win, origDragX, origDragY, DragWidth, DragHeight); while (TRUE) { XMaskEvent(dpy, ButtonPressMask | PointerMotionMask, &event); |