diff options
author | rbuj <[email protected]> | 2021-01-21 20:44:51 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2021-02-01 03:57:01 +0000 |
commit | 0bd62655b7b298069fbe8618a30ccc996aef79f9 (patch) | |
tree | d051d06775f039c2bafd216157a5c359f86a90f4 /plugins/keyboard | |
parent | 5c5bc168873c840f64545527cd245b2e87ada488 (diff) | |
download | mate-settings-daemon-0bd62655b7b298069fbe8618a30ccc996aef79f9.tar.bz2 mate-settings-daemon-0bd62655b7b298069fbe8618a30ccc996aef79f9.tar.xz |
cppcheck warning: Variable is assigned a value that is never used
Diffstat (limited to 'plugins/keyboard')
-rw-r--r-- | plugins/keyboard/msd-keyboard-manager.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/keyboard/msd-keyboard-manager.c b/plugins/keyboard/msd-keyboard-manager.c index 61ef2bd..8beadea 100644 --- a/plugins/keyboard/msd-keyboard-manager.c +++ b/plugins/keyboard/msd-keyboard-manager.c @@ -201,8 +201,6 @@ apply_settings (GSettings *settings, XKeyboardControl kbdcontrol; gboolean repeat; gboolean click; - int rate; - int delay; int click_volume; int bell_volume; int bell_pitch; @@ -215,8 +213,6 @@ apply_settings (GSettings *settings, repeat = g_settings_get_boolean (settings, KEY_REPEAT); click = g_settings_get_boolean (settings, KEY_CLICK); - rate = g_settings_get_int (settings, KEY_RATE); - delay = g_settings_get_int (settings, KEY_DELAY); click_volume = g_settings_get_int (settings, KEY_CLICK_VOLUME); bell_pitch = g_settings_get_int (settings, KEY_BELL_PITCH); bell_duration = g_settings_get_int (settings, KEY_BELL_DURATION); @@ -233,8 +229,9 @@ apply_settings (GSettings *settings, XAutoRepeatOn (GDK_DISPLAY_XDISPLAY (display)); /* Use XKB in preference */ #ifdef HAVE_X11_EXTENSIONS_XKB_H - rate_set = xkb_set_keyboard_autorepeat_rate (delay, rate); -#endif + rate_set = xkb_set_keyboard_autorepeat_rate (g_settings_get_int (settings, KEY_DELAY), + g_settings_get_int (settings, KEY_RATE)); +#endif /* HAVE_X11_EXTENSIONS_XKB_H */ if (!rate_set) g_warning ("Neither XKeyboard not Xfree86's keyboard extensions are available,\n" "no way to support keyboard autorepeat rate settings"); |