From 6b3f945a7e891d2bbeef50bfed18365c7cc6bb0b Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 19 Sep 2016 18:23:07 -0700 Subject: [PATCH] dead code: Remove linebreak(). --- zerver/models.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/zerver/models.py b/zerver/models.py index 625de5c398..1bc51bac6e 100644 --- a/zerver/models.py +++ b/zerver/models.py @@ -759,11 +759,6 @@ def bulk_get_recipients(type, type_ids): return generic_bulk_cached_fetch(cache_key_function, query_function, type_ids, 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', '

').replace('\n', '
') - def extract_message_dict(message_bytes): # type: (binary_type) -> Dict[str, Any] return dict_with_str_keys(ujson.loads(zlib.decompress(message_bytes).decode("utf-8")))