Browse Source

Unused function

adaptive-webui-19844
Ivan Sorokin 10 years ago
parent
commit
0d311062f3
  1. 6
      src/qtlibtorrent/torrentspeedmonitor.cpp

6
src/qtlibtorrent/torrentspeedmonitor.cpp

@ -48,7 +48,6 @@ public: @@ -48,7 +48,6 @@ public:
SpeedSample() {}
void addSample(int speedDL, int speedUL);
Sample<qreal> average() const;
void clear();
private:
static const int max_samples = 30;
@ -92,11 +91,6 @@ Sample<qreal> SpeedSample::average() const @@ -92,11 +91,6 @@ Sample<qreal> SpeedSample::average() const
return Sample<qreal>(sumDL/numSamples, sumUL/numSamples);
}
void SpeedSample::clear()
{
m_speedSamples.clear();
}
void TorrentSpeedMonitor::removeSamples(const QString &hash)
{
m_samples.remove(hash);

Loading…
Cancel
Save