From d2f3be9f36d68f48c1ffacfda96b0cc4f44ac6ba Mon Sep 17 00:00:00 2001 From: Yury Popov Date: Sun, 25 Dec 2022 03:05:16 +0300 Subject: [PATCH] code cleanup: dead global in spect --- src/libespeak-ng/spect.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libespeak-ng/spect.c b/src/libespeak-ng/spect.c index a4a692d3..02c97216 100644 --- a/src/libespeak-ng/spect.c +++ b/src/libespeak-ng/spect.c @@ -36,8 +36,6 @@ #include "synthesize.h" // for KLATT_AV, KLATT_Kopen, N_KLATTP2 #include "voice.h" // for N_PEAKS -static int frame_width; - static const int default_freq[N_PEAKS] = { 200, 500, 1200, 3000, 3500, 4000, 6900, 7800, 9000 }; static const int default_width[N_PEAKS] = @@ -377,9 +375,6 @@ espeak_ng_STATUS LoadSpectSeq(SpectSeq *spect, const char *filename) } spect->max_x = 9000; // disable auto-xscaling - frame_width = (int)((FRAME_WIDTH*spect->max_x)/MAX_DISPLAY_FREQ); - if (frame_width > FRAME_WIDTH) frame_width = FRAME_WIDTH; - // start times from zero time_offset = spect->frames[0]->time; for (ix = 0; ix < spect->numframes; ix++)