From 3394c146d5f7ad8fb234c3858447ff115422c5eb Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Fri, 29 Mar 2024 14:59:47 +0000 Subject: [PATCH] FvwmPager: remove redundant section This was never doing anything for "Monitor", as this was being handled by looking at the module resource lines, instead. --- modules/FvwmPager/FvwmPager.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/modules/FvwmPager/FvwmPager.c b/modules/FvwmPager/FvwmPager.c index 8a53b44e6..58f1fddaa 100644 --- a/modules/FvwmPager/FvwmPager.c +++ b/modules/FvwmPager/FvwmPager.c @@ -1902,28 +1902,6 @@ ImagePath = NULL; } continue; } - /* Why are we doing anything here? */ - else if (StrEquals(token, "Monitor")) { - char *mname; - //struct monitor *m; - //struct fpmonitor *fp; - - next = GetNextToken(next, &mname); -#if 0 - /* Why are we looping here? */ - RB_FOREACH(m, monitors, &monitor_q) { - if ((fp = fpmonitor_this(m)) == NULL) - fp = fpmonitor_new(m); - fp->virtual_scr.Vx = m->virtual_scr.Vx; - fp->virtual_scr.Vy = m->virtual_scr.Vy; - fp->virtual_scr.VxMax = m->virtual_scr.VxMax; - fp->virtual_scr.VyMax = m->virtual_scr.VyMax; - fp->virtual_scr.VWidth = fp->virtual_scr.VxPages * fpmonitor_get_all_widths(); - fp->virtual_scr.VHeight = fp->virtual_scr.VyPages * fpmonitor_get_all_heights(); - } -#endif - continue; - } tline2 = GetModuleResource(tline, &resource, MyName); if (!resource)