(qt) remove unused Torrent field 'torrentFile'

This commit is contained in:
Jordan Lee 2013-01-28 02:12:07 +00:00
parent 1d3bf93618
commit 04e1463b00
2 changed files with 0 additions and 3 deletions

View File

@ -110,7 +110,6 @@ Torrent :: myProperties[] =
{ CREATOR, TR_KEY_creator, QVariant::String, INFO },
{ MANUAL_ANNOUNCE_TIME, TR_KEY_manualAnnounceTime, QVariant::DateTime, STAT_EXTRA },
{ PEERS, TR_KEY_peers, TrTypes::PeerList, STAT_EXTRA },
{ TORRENT_FILE, TR_KEY_torrentFile, QVariant::String, STAT_EXTRA },
{ BANDWIDTH_PRIORITY, TR_KEY_bandwidthPriority, QVariant::Int, STAT_EXTRA },
{ QUEUE_POSITION, TR_KEY_queuePosition, QVariant::Int, STAT },
};

View File

@ -174,7 +174,6 @@ class Torrent: public QObject
CREATOR,
MANUAL_ANNOUNCE_TIME,
PEERS,
TORRENT_FILE,
BANDWIDTH_PRIORITY,
QUEUE_POSITION,
@ -250,7 +249,6 @@ class Torrent: public QObject
QString getPath( ) const { return getString( DOWNLOAD_DIR ); }
QString getError( ) const;
QString hashString( ) const { return getString( HASH_STRING ); }
QString torrentFile( ) const { return getString( TORRENT_FILE ); }
bool hasError( ) const { return !getError( ).isEmpty( ); }
bool isDone( ) const { return getSize( LEFT_UNTIL_DONE ) == 0; }
bool isSeed( ) const { return haveVerified() >= totalSize(); }