Changeset 457


Ignore:
Timestamp:
05/22/08 17:20:46 (12 years ago)
Author:
Eoin
Message:

Cleaned orphaned code.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/halTorrent.cpp

    r456 r457  
    21932193} 
    21942194 
    2195 /* 
    2196 void bit::setTorrentFilePriorities(const std::string& filename,  
    2197         std::vector<int> fileIndices, int priority) 
    2198 { 
    2199         setTorrentFilePriorities(from_utf8_safe(filename), fileIndices, priority); 
    2200 } 
    2201  
    2202 void bit::setTorrentFilePriorities(const std::wstring& filename,  
    2203         std::vector<int> fileIndices, int priority) 
    2204 { 
    2205         try { 
    2206          
    2207         pimpl->theTorrents.get(filename)->setFilePriorities(fileIndices, priority); 
    2208          
    2209         } HAL_GENERIC_TORRENT_EXCEPTION_CATCH(filename, "setTorrentFilePriorities") 
    2210 } 
    2211  
    2212 void bit::setTorrentTrackers(const std::string& filename,  
    2213         const std::vector<tracker_detail>& trackers) 
    2214 { 
    2215         setTorrentTrackers(from_utf8_safe(filename), trackers); 
    2216 } 
    2217  
    2218 void bit::setTorrentTrackers(const std::wstring& filename,  
    2219         const std::vector<tracker_detail>& trackers) 
    2220 { 
    2221         try { 
    2222          
    2223         pimpl->theTorrents.get(filename)->setTrackers(trackers); 
    2224          
    2225         } HAL_GENERIC_TORRENT_EXCEPTION_CATCH(filename, "setTorrentTrackers") 
    2226 } 
    2227  
    2228 void bit::resetTorrentTrackers(const std::string& filename) 
    2229 { 
    2230         resetTorrentTrackers(from_utf8_safe(filename)); 
    2231 } 
    2232  
    2233 void bit::resetTorrentTrackers(const std::wstring& filename) 
    2234 { 
    2235         try { 
    2236          
    2237         pimpl->theTorrents.get(filename)->resetTrackers(); 
    2238          
    2239         } HAL_GENERIC_TORRENT_EXCEPTION_CATCH(filename, "resetTorrentTrackers") 
    2240 } 
    2241  
    2242 std::vector<tracker_detail> bit::getTorrentTrackers(const std::string& filename) 
    2243 { 
    2244         return getTorrentTrackers(from_utf8_safe(filename)); 
    2245 } 
    2246  
    2247 std::vector<tracker_detail> bit::getTorrentTrackers(const std::wstring& filename) 
    2248 { 
    2249         try { 
    2250          
    2251         return pimpl->theTorrents.get(filename)->getTrackers(); 
    2252          
    2253         } HAL_GENERIC_TORRENT_EXCEPTION_CATCH(filename, "getTorrentTrackers") 
    2254          
    2255         return std::vector<tracker_detail>();    
    2256 }*/ 
    2257  
    22582195void bit::startEventReceiver() 
    22592196{ 
  • trunk/src/halTorrent.hpp

    r456 r457  
    638638        void removeTorrentWipeFiles(const std::string& filename); 
    639639        void removeTorrentWipeFiles(const std::wstring&  filename); 
    640 /*       
    641         void setTorrentTrackers(const std::string& filename, const std::vector<tracker_detail>& trackers); 
    642         void setTorrentTrackers(const std::wstring& filename, const std::vector<tracker_detail>& trackers); 
    643         void resetTorrentTrackers(const std::string& filename); 
    644         void resetTorrentTrackers(const std::wstring& filename); 
    645         std::vector<tracker_detail> getTorrentTrackers(const std::string& filename); 
    646         std::vector<tracker_detail> getTorrentTrackers(const std::wstring& filename); 
    647          
    648         void setTorrentFilePriorities(const std::string& filename, std::vector<int> fileIndices, int priority); 
    649         void setTorrentFilePriorities(const std::wstring& filename, std::vector<int> fileIndices, int priority); 
    650 */ 
     640 
    651641        void startEventReceiver(); 
    652642        void stopEventReceiver(); 
Note: See TracChangeset for help on using the changeset viewer.