Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-07-29 16:43:48 +0300
committerlovetox <philipp@hoerist.com>2020-08-11 22:20:33 +0300
commitb5a3a01649cae9e8ed7538df0d175bf33c436bf7 (patch)
tree49b038fa270837d8edeea01be83b3efb9ee7838c
parent65bed3e3f971831d9d4ed9b5d484f8e0b7e1b924 (diff)
Remove unused code
-rw-r--r--gajim/gtk/const.py3
-rw-r--r--gajim/gtk/settings.py10
2 files changed, 1 insertions, 12 deletions
diff --git a/gajim/gtk/const.py b/gajim/gtk/const.py
index cd6f0bb69..6e1e7b446 100644
--- a/gajim/gtk/const.py
+++ b/gajim/gtk/const.py
@@ -57,8 +57,7 @@ class SettingKind(IntEnum):
FILECHOOSER = 10
CHANGEPASSWORD = 11
COMBO = 12
- CHATSTATE_COMBO = 13
- COLOR = 14
+ COLOR = 13
@unique
diff --git a/gajim/gtk/settings.py b/gajim/gtk/settings.py
index 60e3ef413..319cf63a0 100644
--- a/gajim/gtk/settings.py
+++ b/gajim/gtk/settings.py
@@ -98,7 +98,6 @@ class SettingsBox(Gtk.ListBox):
SettingKind.HOSTNAME: CutstomHostnameSetting,
SettingKind.CHANGEPASSWORD: ChangePasswordSetting,
SettingKind.COMBO: ComboSetting,
- SettingKind.CHATSTATE_COMBO: ChatstateComboSetting,
}
if extend is not None:
@@ -575,15 +574,6 @@ class ComboSetting(GenericSetting):
pass
-class ChatstateComboSetting(ComboSetting):
- def on_value_change(self, combo):
- self.set_value(combo.get_active_id())
- if 'muc' in self.value:
- app.config.del_all_per('rooms', 'send_chatstate')
- else:
- app.config.del_all_per('contacts', 'send_chatstate')
-
-
class ProxyComboSetting(GenericSetting):
__gproperties__ = {