diff options
author | Steve Zesch <[email protected]> | 2012-08-04 19:01:34 -0400 |
---|---|---|
committer | Steve Zesch <[email protected]> | 2012-08-04 19:01:34 -0400 |
commit | 91f651c6f6f0ee7fdff1d49e36161d4e76e16e02 (patch) | |
tree | 018c46888bd8d1ac6dac6c6db56e8fa3cc6c3071 /plugins | |
parent | 78afd1dac7239fab2c0a27284950326bd83c5eea (diff) | |
download | mate-settings-daemon-91f651c6f6f0ee7fdff1d49e36161d4e76e16e02.tar.bz2 mate-settings-daemon-91f651c6f6f0ee7fdff1d49e36161d4e76e16e02.tar.xz |
Micro-optimization.
do_multimedia_player_action did nothing more than call
msd_media_player_key_pressed, which was pointless overhead.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/media-keys/msd-media-keys-manager.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c index d75c031..f65596d 100644 --- a/plugins/media-keys/msd-media-keys-manager.c +++ b/plugins/media-keys/msd-media-keys-manager.c @@ -980,13 +980,6 @@ msd_media_player_key_pressed (MsdMediaKeysManager *manager, } static gboolean -do_multimedia_player_action (MsdMediaKeysManager *manager, - const char *key) -{ - return msd_media_player_key_pressed (manager, key); -} - -static gboolean do_action (MsdMediaKeysManager *manager, int type) { @@ -1059,19 +1052,19 @@ do_action (MsdMediaKeysManager *manager, g_free (cmd); break; case PLAY_KEY: - return do_multimedia_player_action (manager, "Play"); + return msd_media_player_key_pressed (manager, "Play"); break; case PAUSE_KEY: - return do_multimedia_player_action (manager, "Pause"); + return msd_media_player_key_pressed (manager, "Pause"); break; case STOP_KEY: - return do_multimedia_player_action (manager, "Stop"); + return msd_media_player_key_pressed (manager, "Stop"); break; case PREVIOUS_KEY: - return do_multimedia_player_action (manager, "Previous"); + return msd_media_player_key_pressed (manager, "Previous"); break; case NEXT_KEY: - return do_multimedia_player_action (manager, "Next"); + return msd_media_player_key_pressed (manager, "Next"); break; default: g_assert_not_reached (); |