diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-09 19:07:42 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-09 19:07:42 +0000 |
commit | 202b03376bcf600b6ed31989012110a1c004a80d (patch) | |
tree | f09713820d08d6f7ad0295fa2e1af9a1e46327fe /kcontrol/randr | |
parent | c01c2e1f191c04841f480a1bd768277e7ef4726c (diff) | |
download | tdebase-202b03376bcf600b6ed31989012110a1c004a80d.tar.gz tdebase-202b03376bcf600b6ed31989012110a1c004a80d.zip |
Remove unneccessary function get_mode_name that was causing compilation issues
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1072262 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/randr')
-rw-r--r-- | kcontrol/randr/lowlevel_randr.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/kcontrol/randr/lowlevel_randr.c b/kcontrol/randr/lowlevel_randr.c index a6d54dbcd..7f3e890fd 100644 --- a/kcontrol/randr/lowlevel_randr.c +++ b/kcontrol/randr/lowlevel_randr.c @@ -455,36 +455,6 @@ void free_screen_info (struct ScreenInfo *screen_info) -static char * get_mode_name (struct ScreenInfo *screen_info, RRMode mode_id) -{ - XRRScreenResources *sr; - char *mode_name = NULL; - int i; - - sr = screen_info->res; - - for (i = 0; i < sr->nmode; i++) { - if (sr->modes[i].id == mode_id) { - break; - } - } - - if (i == sr->nmode) { - mode_name = g_strdup ("Unknown mode"); - } else { - double rate; - if (sr->modes[i].hTotal && sr->modes[i].vTotal) { - rate = ((double) sr->modes[i].dotClock / - ((double) sr->modes[i].hTotal * (double) sr->modes[i].vTotal)); - } else { - rate = 0; - } - mode_name = g_strdup_printf ("%s%6.1fHz", sr->modes[i].name, rate); - } - - return mode_name; -} - /*check if other outputs that connected to the same crtc support this mode*/ static int check_mode (struct ScreenInfo *screen_info, struct OutputInfo *output, RRMode mode_id) { |