From 3712d9c3f5d783f1d5648cffeb21543530d802e7 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Tue, 11 Oct 2022 17:00:04 +0530 Subject: [PATCH] realm: Remove redundant code. This code is not needed as we have changed the message edit settings to be handled by "do_set_realm_property" function in 04693b6ac1. --- zerver/views/realm.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/zerver/views/realm.py b/zerver/views/realm.py index 62bb5287c5..4debe20414 100644 --- a/zerver/views/realm.py +++ b/zerver/views/realm.py @@ -263,16 +263,6 @@ def update_realm( ): do_set_realm_authentication_methods(realm, authentication_methods, acting_user=user_profile) data["authentication_methods"] = authentication_methods - # The message_editing settings are coupled to each other, and thus don't fit - # into the do_set_realm_property framework. - - message_content_edit_limit_seconds = realm.message_content_edit_limit_seconds - if message_content_edit_limit_seconds_raw is not None: - message_content_edit_limit_seconds = parse_message_content_edit_or_delete_limit( - message_content_edit_limit_seconds_raw, - Realm.MESSAGE_CONTENT_EDIT_OR_DELETE_LIMIT_SPECIAL_VALUES_MAP, - setting_name="message_content_edit_limit_seconds", - ) # Realm.notifications_stream and Realm.signup_notifications_stream are not boolean, # str or integer field, and thus doesn't fit into the do_set_realm_property framework.