Sonogram: Remove unused parameter variable
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
const char *Sonogram::kName = QT_TRANSLATE_NOOP("AnalyzerContainer", "Sonogram");
|
const char *Sonogram::kName = QT_TRANSLATE_NOOP("AnalyzerContainer", "Sonogram");
|
||||||
|
|
||||||
Sonogram::Sonogram(QWidget *parent)
|
Sonogram::Sonogram(QWidget *parent)
|
||||||
: Analyzer::Base(parent, 9), scope_size_(128) {}
|
: Analyzer::Base(parent, 9) {}
|
||||||
|
|
||||||
Sonogram::~Sonogram() {}
|
Sonogram::~Sonogram() {}
|
||||||
|
|
||||||
@@ -53,9 +53,6 @@ void Sonogram::analyze(QPainter &p, const Analyzer::Scope &s, bool new_frame) {
|
|||||||
canvas_painter.drawPixmap(0, 0, canvas_, 1, 0, width() - 1, -1);
|
canvas_painter.drawPixmap(0, 0, canvas_, 1, 0, width() - 1, -1);
|
||||||
|
|
||||||
Analyzer::Scope::const_iterator it = s.begin(), end = s.end();
|
Analyzer::Scope::const_iterator it = s.begin(), end = s.end();
|
||||||
if (scope_size_ != static_cast<int>(s.size())) {
|
|
||||||
scope_size_ = s.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int y = height() - 1; y;) {
|
for (int y = height() - 1; y;) {
|
||||||
QColor c;
|
QColor c;
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ class Sonogram : public Analyzer::Base {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QPixmap canvas_;
|
QPixmap canvas_;
|
||||||
size_t scope_size_;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SONOGRAM_H
|
#endif // SONOGRAM_H
|
||||||
|
|||||||
Reference in New Issue
Block a user