From f66274fd9d048fce6157b9a8ca19bfac15c3c513 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 12 Feb 2014 11:09:39 +0000 Subject: [PATCH] Remove unneeded old 'public' option code --- deluge/core/preferencesmanager.py | 6 ------ deluge/ui/gtkui/torrentview.py | 1 - 2 files changed, 7 deletions(-) diff --git a/deluge/core/preferencesmanager.py b/deluge/core/preferencesmanager.py index 73d9de493..c2c128cdc 100644 --- a/deluge/core/preferencesmanager.py +++ b/deluge/core/preferencesmanager.py @@ -157,13 +157,7 @@ DEFAULT_PREFS = { class PreferencesManager(component.Component): def __init__(self): component.Component.__init__(self, "PreferencesManager") - self.config = deluge.configmanager.ConfigManager("core.conf", DEFAULT_PREFS) - if 'public' in self.config: - log.debug("Updating configuration file: Renamed torrent's public " - "attribute to shared.") - self.config["shared"] = self.config["public"] - del self.config["public"] def start(self): self.core = component.get("Core") diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index 5a158fe5f..f7c771516 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -306,7 +306,6 @@ class TorrentView(listview.ListView, component.Component): function=funcs.cell_data_trackericon, default=False) self.add_text_column(_("Save Path"), status_field=["save_path"], default=False) self.add_text_column(_("Owner"), status_field=["owner"], default=False) - self.add_bool_column(_("Public"), status_field=["public"], default=False) self.restore_columns_order_from_state() self.add_bool_column(_("Shared"), status_field=["shared"], tooltip=_("Torrent is shared between other Deluge "