dead code: Remove linebreak().

This commit is contained in:
Steve Howell 2016-09-19 18:23:07 -07:00
parent c2277afd06
commit 6b3f945a7e
1 changed files with 0 additions and 5 deletions

View File

@ -759,11 +759,6 @@ def bulk_get_recipients(type, type_ids):
return generic_bulk_cached_fetch(cache_key_function, query_function, type_ids, return generic_bulk_cached_fetch(cache_key_function, query_function, type_ids,
id_fetcher=lambda recipient: recipient.type_id) id_fetcher=lambda recipient: recipient.type_id)
# NB: This function is currently unused, but may come in handy.
def linebreak(string):
# type: (text_type) -> text_type
return string.replace('\n\n', '<p/>').replace('\n', '<br/>')
def extract_message_dict(message_bytes): def extract_message_dict(message_bytes):
# type: (binary_type) -> Dict[str, Any] # type: (binary_type) -> Dict[str, Any]
return dict_with_str_keys(ujson.loads(zlib.decompress(message_bytes).decode("utf-8"))) return dict_with_str_keys(ujson.loads(zlib.decompress(message_bytes).decode("utf-8")))