From 0d311062f34d6f9a29e256d8154f1a2d00e9a2f8 Mon Sep 17 00:00:00 2001 From: Ivan Sorokin Date: Sun, 2 Nov 2014 18:20:28 +0300 Subject: [PATCH] Unused function --- src/qtlibtorrent/torrentspeedmonitor.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/qtlibtorrent/torrentspeedmonitor.cpp b/src/qtlibtorrent/torrentspeedmonitor.cpp index f898e4acc..6eed6642e 100644 --- a/src/qtlibtorrent/torrentspeedmonitor.cpp +++ b/src/qtlibtorrent/torrentspeedmonitor.cpp @@ -48,7 +48,6 @@ public: SpeedSample() {} void addSample(int speedDL, int speedUL); Sample average() const; - void clear(); private: static const int max_samples = 30; @@ -92,11 +91,6 @@ Sample SpeedSample::average() const return Sample(sumDL/numSamples, sumUL/numSamples); } -void SpeedSample::clear() -{ - m_speedSamples.clear(); -} - void TorrentSpeedMonitor::removeSamples(const QString &hash) { m_samples.remove(hash);