From 05566894ad994d7b8fae3cb41163e3cbb4089028 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 28 Oct 2016 11:33:15 +0100 Subject: [PATCH] [Core] [UI] Remove deprecated lt extensions * These extensions have been deprecated in 1.1 so simply remove usage. --- deluge/core/core.py | 1 - deluge/core/preferencesmanager.py | 6 ---- .../modes/preferences/preference_panes.py | 1 - deluge/ui/gtkui/glade/preferences_dialog.ui | 29 ++++--------------- deluge/ui/gtkui/preferences.py | 2 -- .../js/deluge-all/preferences/NetworkPage.js | 7 ----- 6 files changed, 5 insertions(+), 41 deletions(-) diff --git a/deluge/core/core.py b/deluge/core/core.py index e64aa3e72..ecd6976e3 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -77,7 +77,6 @@ class Core(component.Component): # --- libtorrent plugins --- # Allows peers to download the metadata from the swarm directly - self.session.add_extension("metadata_transfer") self.session.add_extension("ut_metadata") # Ban peers that sends bad data self.session.add_extension("smart_ban") diff --git a/deluge/core/preferencesmanager.py b/deluge/core/preferencesmanager.py index d7aa3e8aa..35dfec734 100644 --- a/deluge/core/preferencesmanager.py +++ b/deluge/core/preferencesmanager.py @@ -53,7 +53,6 @@ DEFAULT_PREFS = { "upnp": True, "natpmp": True, "utpex": True, - "lt_tex": True, "lsd": True, "enc_in_policy": 1, "enc_out_policy": 1, @@ -266,11 +265,6 @@ class PreferencesManager(component.Component): if value: self.session.add_extension("ut_pex") - def _on_set_lt_tex(self, key, value): - log.debug("lt_tex value set to %s", value) - if value: - self.session.add_extension("lt_trackers") - def _on_set_enc_in_policy(self, key, value): self._on_set_encryption(key, value) diff --git a/deluge/ui/console/modes/preferences/preference_panes.py b/deluge/ui/console/modes/preferences/preference_panes.py index 4c36510a7..a156398d8 100644 --- a/deluge/ui/console/modes/preferences/preference_panes.py +++ b/deluge/ui/console/modes/preferences/preference_panes.py @@ -249,7 +249,6 @@ class NetworkPane(BasePreferencePane): self.add_checked_input("upnp", "UPnP", core_conf["upnp"]) self.add_checked_input("natpmp", "NAT-PMP", core_conf["natpmp"]) self.add_checked_input("utpex", "Peer Exchange", core_conf["utpex"]) - self.add_checked_input("lt_tex", "Tracker Exchange", core_conf["lt_tex"]) self.add_checked_input("lsd", "LSD", core_conf["lsd"]) self.add_checked_input("dht", "DHT", core_conf["dht"]) diff --git a/deluge/ui/gtkui/glade/preferences_dialog.ui b/deluge/ui/gtkui/glade/preferences_dialog.ui index 502d4ac17..d3855a908 100644 --- a/deluge/ui/gtkui/glade/preferences_dialog.ui +++ b/deluge/ui/gtkui/glade/preferences_dialog.ui @@ -3256,7 +3256,7 @@ used sparingly. True False - 3 + 2 3 6 1 @@ -3311,25 +3311,6 @@ used sparingly. 3 - - - Tracker Exchange - False - True - True - False - Exchanges trackers between clients. (Disabling requires restart) - True - True - True - - - 2 - 3 - 1 - 2 - - LSD @@ -3373,8 +3354,6 @@ used sparingly. True False - TOS can help with network conjestion. This value is included in every IPv4 packet header sent to peers (inc. web seeds). -Requires a Hex value. 3 Peer TOS Byte: @@ -3390,6 +3369,7 @@ Requires a Hex value. True True 4 + 4 0x00 True @@ -3406,9 +3386,10 @@ Requires a Hex value. + 2 3 - 2 - 3 + 1 + 2 diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index fed298d98..8880dd94e 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -337,7 +337,6 @@ class Preferences(component.Component): "chk_upnp": ("active", "upnp"), "chk_natpmp": ("active", "natpmp"), "chk_utpex": ("active", "utpex"), - "chk_lt_tex": ("active", "lt_tex"), "chk_lsd": ("active", "lsd"), "chk_new_releases": ("active", "new_release_check"), "chk_send_info": ("active", "send_info"), @@ -545,7 +544,6 @@ class Preferences(component.Component): new_core_config["upnp"] = self.builder.get_object("chk_upnp").get_active() new_core_config["natpmp"] = self.builder.get_object("chk_natpmp").get_active() new_core_config["utpex"] = self.builder.get_object("chk_utpex").get_active() - new_core_config["lt_tex"] = self.builder.get_object("chk_lt_tex").get_active() new_core_config["lsd"] = self.builder.get_object("chk_lsd").get_active() new_core_config["enc_in_policy"] = self.builder.get_object("combo_encin").get_active() new_core_config["enc_out_policy"] = self.builder.get_object("combo_encout").get_active() diff --git a/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js b/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js index 4846a26f7..25d227282 100644 --- a/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js @@ -189,13 +189,6 @@ Deluge.preferences.Network = Ext.extend(Ext.form.FormPanel, { ctCls: 'x-deluge-indent-checkbox', name: 'dht' })); - optMan.bind('lt_tex', fieldset.add({ - fieldLabel: '', - labelSeparator: '', - boxLabel: _('Tracker Exchange'), - ctCls: 'x-deluge-indent-checkbox', - name: 'lt_tex' - })); fieldset = this.add({ xtype: 'fieldset',