From 92beee2b4c7d564df1056ee2ea4d53f64e9e99d0 Mon Sep 17 00:00:00 2001 From: Yury Popov Date: Sun, 27 Nov 2022 13:54:29 +0300 Subject: [PATCH] code cleanup: remove dead code --- src/libespeak-ng/speech.c | 3 --- src/libespeak-ng/wavegen.c | 5 ----- 2 files changed, 8 deletions(-) diff --git a/src/libespeak-ng/speech.c b/src/libespeak-ng/speech.c index a989cc38..71065bf7 100644 --- a/src/libespeak-ng/speech.c +++ b/src/libespeak-ng/speech.c @@ -123,9 +123,6 @@ static int dispatch_audio(short *outbuf, int length, espeak_EVENT *event) // sound was previously open with a different sample rate audio_object_close(my_audio); out_samplerate = 0; -#ifdef HAVE_SLEEP - sleep(1); -#endif } #endif #if USE_LIBPCAUDIO diff --git a/src/libespeak-ng/wavegen.c b/src/libespeak-ng/wavegen.c index 913d9da0..fe8dfc02 100644 --- a/src/libespeak-ng/wavegen.c +++ b/src/libespeak-ng/wavegen.c @@ -832,10 +832,6 @@ static int Wavegen(int length, int modulation, bool resume, frame_t *fr1, frame_ } // apply main peaks, formants 0 to 5 -#ifdef USE_ASSEMBLER_1 - // use an optimised routine for this loop, if available - total += AddSineWaves(waveph, h_switch_sign, maxh, harmspect); // call an assembler code routine -#else theta = waveph; for (h = 1; h <= h_switch_sign; h++) { @@ -847,7 +843,6 @@ static int Wavegen(int length, int modulation, bool resume, frame_t *fr1, frame_ theta += waveph; h++; } -#endif if (voicing != 64) total = (total >> 6) * voicing;