spectrogram: Remove more dead code (openFile)

This commit is contained in:
Mike Walters
2016-03-03 22:18:33 +00:00
parent b789d3a295
commit e1b99805a2
2 changed files with 0 additions and 16 deletions

View File

@@ -58,21 +58,6 @@ QSize SpectrogramPlot::sizeHint() const
return QSize(1024, 2048);
}
void SpectrogramPlot::openFile(QString fileName)
{
if (fileName != nullptr) {
try {
InputSource *newFile = new InputSource(fileName.toUtf8().constData());
delete inputSource;
pixmapCache.clear();
fftCache.clear();
inputSource = newFile;
} catch (std::runtime_error e) {
// TODO: display error
}
}
}
void SpectrogramPlot::xyToFreqTime(int x, int y, float *freq, float *time)
{
*freq = labs(x - (fftSize / 2)) * sampleRate / 2 / (float)fftSize;