Ignore:
Timestamp:
Feb 11, 2010, 3:05:07 PM (12 years ago)
Author:
charles
Message:

(trunk) #2894 "tr_torrentGetFileDL() and tr_torrentGetFilePriority() should go away" -- get rid of it in the mac client and libtransmission too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10160 r10174  
    17361736}
    17371737
    1738 tr_priority_t
    1739 tr_torrentGetFilePriority( const tr_torrent * tor,
    1740                            tr_file_index_t    file )
    1741 {
    1742     tr_priority_t ret;
    1743 
    1744     assert( tr_isTorrent( tor ) );
    1745 
    1746     tr_torrentLock( tor );
    1747     assert( tor );
    1748     assert( file < tor->info.fileCount );
    1749     ret = tor->info.files[file].priority;
    1750     tr_torrentUnlock( tor );
    1751 
    1752     return ret;
    1753 }
    1754 
    17551738tr_priority_t*
    17561739tr_torrentGetFilePriorities( const tr_torrent * tor )
     
    17731756***  File DND
    17741757**/
    1775 
    1776 int
    1777 tr_torrentGetFileDL( const tr_torrent * tor,
    1778                      tr_file_index_t    file )
    1779 {
    1780     int doDownload;
    1781 
    1782     assert( tr_isTorrent( tor ) );
    1783 
    1784     tr_torrentLock( tor );
    1785 
    1786     assert( file < tor->info.fileCount );
    1787     doDownload = !tor->info.files[file].dnd;
    1788 
    1789     tr_torrentUnlock( tor );
    1790     return doDownload != 0;
    1791 }
    17921758
    17931759static void
Note: See TracChangeset for help on using the changeset viewer.