From 9d6728d3e764a23392e311315cb3873e8a9ffeb5 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Fri, 9 Oct 2009 23:47:22 +0200 Subject: [PATCH] Remove SPEAKER_SOUND dead code SPEAKER_SOUND is defined nowhere, so this code was not being used and I don't want its functionality anyway. --- src/superfluous.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/superfluous.c b/src/superfluous.c index 20a00a39..3e7fa36f 100644 --- a/src/superfluous.c +++ b/src/superfluous.c @@ -44,21 +44,6 @@ extern WPreferences wPreferences; -#ifdef SPEAKER_SOUND -static void play(Display * dpy, int pitch, int delay) -{ - XKeyboardControl kc; - - kc.bell_pitch = pitch; - kc.bell_percent = 50; - kc.bell_duration = delay; - XChangeKeyboardControl(dpy, KBBellPitch | KBBellDuration | KBBellPercent, &kc); - XBell(dpy, 50); - XFlush(dpy); - wusleep(delay); -} -#endif - #ifdef DEMATERIALIZE_ICON void DoKaboom(WScreen * scr, Window win, int x, int y) { @@ -256,12 +241,9 @@ void DoKaboom(WScreen * scr, Window win, int x, int y) } XFlush(dpy); -#ifdef SPEAKER_SOUND - play(dpy, 100 + rand() % 250, 12); -#else -# if (MINIATURIZE_ANIMATION_DELAY_Z > 0) + +#if (MINIATURIZE_ANIMATION_DELAY_Z > 0) wusleep(MINIATURIZE_ANIMATION_DELAY_Z * 2); -# endif #endif }