Browse Source

Remove some unused stuff

adaptive-webui-19844
thalieht 6 years ago
parent
commit
86df25a3e9
  1. 3
      src/base/bittorrent/private/statistics.cpp
  2. 1
      src/base/torrentfileguard.cpp
  3. 5
      src/base/torrentfileguard.h
  4. 1
      src/base/torrentfilter.cpp

3
src/base/bittorrent/private/statistics.cpp

@ -30,15 +30,12 @@
#include <QDateTime> #include <QDateTime>
#include <libtorrent/session.hpp>
#include "base/bittorrent/session.h" #include "base/bittorrent/session.h"
#include "base/bittorrent/sessionstatus.h" #include "base/bittorrent/sessionstatus.h"
#include "base/profile.h" #include "base/profile.h"
static const qint64 SAVE_INTERVAL = 15 * 60 * 1000; static const qint64 SAVE_INTERVAL = 15 * 60 * 1000;
namespace libt = libtorrent;
using namespace BitTorrent; using namespace BitTorrent;
Statistics::Statistics(Session *session) Statistics::Statistics(Session *session)

1
src/base/torrentfileguard.cpp

@ -86,4 +86,3 @@ CachedSettingValue<TorrentFileGuard::AutoDeleteMode> &TorrentFileGuard::autoDele
static CachedSettingValue<AutoDeleteMode> setting("Core/AutoDeleteAddedTorrentFile", AutoDeleteMode::Never); static CachedSettingValue<AutoDeleteMode> setting("Core/AutoDeleteAddedTorrentFile", AutoDeleteMode::Never);
return setting; return setting;
} }

5
src/base/torrentfileguard.h

@ -26,8 +26,7 @@
* exception statement from your version. * exception statement from your version.
*/ */
#ifndef TOFFENTFILEGURAD_H #pragma once
#define TOFFENTFILEGURAD_H
#include <QObject> #include <QObject>
#include <QString> #include <QString>
@ -82,5 +81,3 @@ private:
AutoDeleteMode m_mode; AutoDeleteMode m_mode;
bool m_wasAdded; bool m_wasAdded;
}; };
#endif // TOFFENTFILEGURAD_H

1
src/base/torrentfilter.cpp

@ -44,7 +44,6 @@ const TorrentFilter TorrentFilter::InactiveTorrent(TorrentFilter::Inactive);
const TorrentFilter TorrentFilter::ErroredTorrent(TorrentFilter::Errored); const TorrentFilter TorrentFilter::ErroredTorrent(TorrentFilter::Errored);
using BitTorrent::TorrentHandle; using BitTorrent::TorrentHandle;
using BitTorrent::TorrentState;
TorrentFilter::TorrentFilter() TorrentFilter::TorrentFilter()
: m_type(All) : m_type(All)

Loading…
Cancel
Save