changeset 11563:8d0ac3c37831

[gaim-migrate @ 13829] SF Patch #1298283, from Casey Harkins "This patch removes a bit of cruft left over in sound.c from the refactor sound patch. It fixes compilation warnings about unused variables in sound.c" committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 22 Sep 2005 03:47:32 +0000
parents 9f521a61ef58
children 22bfbc2a5555
files plugins/ChangeLog.API src/sound.c
diffstat 2 files changed, 1 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/ChangeLog.API	Wed Sep 21 22:57:10 2005 +0000
+++ b/plugins/ChangeLog.API	Thu Sep 22 03:47:32 2005 +0000
@@ -103,6 +103,7 @@
 	* Changed: GaimNotifyUiOps::notify_userinfo, removed title, primary,
 	           and secondary args
 	* Removed: uc from the GaimBuddy struct
+	* Removed: gaim_sound_get_handle()
 
 	Signals:
 	* Changed: "received-im-msg" and "received-chat-msg" to match, both
--- a/src/sound.c	Wed Sep 21 22:57:10 2005 +0000
+++ b/src/sound.c	Thu Sep 22 03:47:32 2005 +0000
@@ -72,19 +72,9 @@
 	return sound_ui_ops;
 }
 
-void *
-gaim_sound_get_handle() {
-	static int handle;
-
-	return &handle;
-}
-
 void
 gaim_sound_init()
 {
-	void *handle       = gaim_sound_get_handle();
-	void *blist_handle = gaim_blist_get_handle();
-
 	gaim_prefs_add_none("/core/sound");
 	gaim_prefs_add_bool("/core/sound/while_away", FALSE);
 
@@ -93,8 +83,6 @@
 void
 gaim_sound_uninit()
 {
-	gaim_signals_disconnect_by_handle(gaim_sound_get_handle());
-
 	if(sound_ui_ops && sound_ui_ops->uninit)
 		sound_ui_ops->uninit();
 }