From 6458a1eb621035b84d3b23a4be155b472a30356a Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Wed, 11 Sep 2019 11:56:40 +0300 Subject: [PATCH] Remove duplicate messages method (#4131) --- redash/handlers/authentication.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/redash/handlers/authentication.py b/redash/handlers/authentication.py index a698dfb496..d7ad6e3511 100644 --- a/redash/handlers/authentication.py +++ b/redash/handlers/authentication.py @@ -263,18 +263,6 @@ def messages(): return messages -def messages(): - messages = [] - - if not current_user.is_email_verified: - messages.append('email-not-verified') - - if settings.ALLOW_PARAMETERS_IN_EMBEDS: - messages.append('using-deprecated-embed-feature') - - return messages - - @routes.route('/api/config', methods=['GET']) def config(org_slug=None): return json_response({