From 86df25a3e933058bf55c105296231c8ae302b696 Mon Sep 17 00:00:00 2001 From: thalieht Date: Thu, 14 Feb 2019 21:45:29 +0200 Subject: [PATCH] Remove some unused stuff --- src/base/bittorrent/private/statistics.cpp | 3 --- src/base/torrentfileguard.cpp | 1 - src/base/torrentfileguard.h | 5 +---- src/base/torrentfilter.cpp | 1 - 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/base/bittorrent/private/statistics.cpp b/src/base/bittorrent/private/statistics.cpp index 6e7413920..b2a60b207 100644 --- a/src/base/bittorrent/private/statistics.cpp +++ b/src/base/bittorrent/private/statistics.cpp @@ -30,15 +30,12 @@ #include -#include - #include "base/bittorrent/session.h" #include "base/bittorrent/sessionstatus.h" #include "base/profile.h" static const qint64 SAVE_INTERVAL = 15 * 60 * 1000; -namespace libt = libtorrent; using namespace BitTorrent; Statistics::Statistics(Session *session) diff --git a/src/base/torrentfileguard.cpp b/src/base/torrentfileguard.cpp index 1a39196e5..55d34d499 100644 --- a/src/base/torrentfileguard.cpp +++ b/src/base/torrentfileguard.cpp @@ -86,4 +86,3 @@ CachedSettingValue &TorrentFileGuard::autoDele static CachedSettingValue setting("Core/AutoDeleteAddedTorrentFile", AutoDeleteMode::Never); return setting; } - diff --git a/src/base/torrentfileguard.h b/src/base/torrentfileguard.h index 7f508273e..0ca772c94 100644 --- a/src/base/torrentfileguard.h +++ b/src/base/torrentfileguard.h @@ -26,8 +26,7 @@ * exception statement from your version. */ -#ifndef TOFFENTFILEGURAD_H -#define TOFFENTFILEGURAD_H +#pragma once #include #include @@ -82,5 +81,3 @@ private: AutoDeleteMode m_mode; bool m_wasAdded; }; - -#endif // TOFFENTFILEGURAD_H diff --git a/src/base/torrentfilter.cpp b/src/base/torrentfilter.cpp index b504d1dd4..9d9242f87 100644 --- a/src/base/torrentfilter.cpp +++ b/src/base/torrentfilter.cpp @@ -44,7 +44,6 @@ const TorrentFilter TorrentFilter::InactiveTorrent(TorrentFilter::Inactive); const TorrentFilter TorrentFilter::ErroredTorrent(TorrentFilter::Errored); using BitTorrent::TorrentHandle; -using BitTorrent::TorrentState; TorrentFilter::TorrentFilter() : m_type(All)