mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
Removed unused code from interface.build_torrent_table().
This commit is contained in:
parent
37825effa1
commit
0016c39656
1 changed files with 0 additions and 6 deletions
|
@ -441,11 +441,6 @@ class DelugeGTK:
|
||||||
self.torrent_view.set_reorderable(True)
|
self.torrent_view.set_reorderable(True)
|
||||||
self.torrent_view.get_selection().set_mode(gtk.SELECTION_MULTIPLE)
|
self.torrent_view.get_selection().set_mode(gtk.SELECTION_MULTIPLE)
|
||||||
|
|
||||||
def size(column, cell, model, iter, data):
|
|
||||||
size = long(model.get_value(iter, data))
|
|
||||||
size_str = common.fsize(size)
|
|
||||||
cell.set_property('text', size_str)
|
|
||||||
|
|
||||||
def peer(column, cell, model, iter, data):
|
def peer(column, cell, model, iter, data):
|
||||||
c1, c2 = data
|
c1, c2 = data
|
||||||
a = int(model.get_value(iter, c1))
|
a = int(model.get_value(iter, c1))
|
||||||
|
@ -467,7 +462,6 @@ class DelugeGTK:
|
||||||
else:
|
else:
|
||||||
ratio_str = "%.3f"%ratio
|
ratio_str = "%.3f"%ratio
|
||||||
cell.set_property('text', ratio_str)
|
cell.set_property('text', ratio_str)
|
||||||
|
|
||||||
|
|
||||||
## Initializes the columns for the torrent_view
|
## Initializes the columns for the torrent_view
|
||||||
(TORRENT_VIEW_COL_UID, TORRENT_VIEW_COL_QUEUE, TORRENT_VIEW_COL_STATUSICON, TORRENT_VIEW_COL_NAME,
|
(TORRENT_VIEW_COL_UID, TORRENT_VIEW_COL_QUEUE, TORRENT_VIEW_COL_STATUSICON, TORRENT_VIEW_COL_NAME,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue