tornado: Remove unused caching code.

This commit is contained in:
Tim Abbott 2017-01-19 16:36:31 -08:00
parent a1b0e35792
commit 42612161df
2 changed files with 0 additions and 6 deletions

View File

@ -313,10 +313,6 @@ def user_profile_by_id_cache_key(user_profile_id):
# TODO: Refactor these cache helpers into another file that can import
# models.py so that python v3 style type annotations can also work.
def cache_save_user_profile(user_profile):
# type: (UserProfile) -> None
cache_set(user_profile_by_id_cache_key(user_profile.id), user_profile, timeout=3600*24*7)
active_user_dict_fields = ['id', 'full_name', 'short_name', 'email', 'is_realm_admin', 'is_bot'] # type: List[str]
def active_user_dicts_in_realm_cache_key(realm):
# type: (Realm) -> Text

View File

@ -21,8 +21,6 @@ import random
import traceback
from zerver.models import UserProfile, Client
from zerver.decorator import RespondAsynchronously
from zerver.lib.cache import cache_get_many, \
user_profile_by_id_cache_key, cache_save_user_profile, cache_with_key
from zerver.tornado.handlers import clear_handler_by_id, get_handler_by_id, \
finish_handler, handler_stats_string
from zerver.lib.utils import statsd