aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2017-04-16 16:29:57 +0200
committerTollef Fog Heen <tfheen@err.no>2017-04-16 16:29:57 +0200
commit82db09fb443713e235c607ea97c254f2654e1a32 (patch)
tree03a185910c9a38ac441107f15ec06c46279ab924
parent0faa53d14228b37e3b82c7d928de747cabfbe1b1 (diff)
downloadwee-slack-82db09fb443713e235c607ea97c254f2654e1a32.tar.gz
Remove dead code related to cache
The cache is gone, remove some related code.
-rw-r--r--wee_slack.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 039bcb7..818f46a 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -32,8 +32,6 @@ SCRIPT_DESC = "Extends weechat for typing notification/search/etc on slack.com"
BACKLOG_SIZE = 200
SCROLLBACK_SIZE = 500
-CACHE_VERSION = "4"
-
RECORD_DIR = "/tmp/weeslack-debug"
SLACK_API_TRANSLATOR = {
@@ -3086,7 +3084,6 @@ def setup_hooks():
w.hook_completion("emoji", "complete :emoji: for slack", "emoji_completion_cb", "")
# Hooks to fix/implement
- # w.hook_timer(1000 * 60 * 5, 0, 0, "cache_write_cb", "")
# w.hook_signal('buffer_opened', "buffer_opened_cb", "")
# w.hook_signal('window_scrolled', "scrolled_cb", "")
# w.hook_timer(3000, 0, 0, "slack_connection_persistence_cb", "")
@@ -3136,7 +3133,6 @@ class PluginConfig(object):
'switch_buffer_on_join': 'true',
'trigger_value': 'false',
'unfurl_ignore_alt_text': 'false',
- 'cache_messages': 'true',
'record_events': 'false',
'thread_suffix_color': 'lightcyan',
'unhide_buffers_with_activity': 'false',
@@ -3265,7 +3261,6 @@ if __name__ == "__main__":
# setup_trace()
# WEECHAT_HOME = w.info_get("weechat_dir", "")
- # CACHE_NAME = "slack.cache"
# STOP_TALKING_TO_SLACK = False
# Global var section
@@ -3283,10 +3278,6 @@ if __name__ == "__main__":
# hotlist = w.infolist_get("hotlist", "", "")
# main_weechat_buffer = w.info_get("irc_buffer", "{}.{}".format(domain, "DOESNOTEXIST!@#$"))
- # message_cache = collections.defaultdict(list)
- # if config.cache_messages:
- # cache_load()
-
w.hook_config("plugins.var.python." + SCRIPT_NAME + ".*", "config_changed_cb", "")
load_emoji()