[PATCH 3 of 9] lib: remove unused method 'notify' from DbManage

Thomas De Schampheleire patrickdepinguin at gmail.com
Thu Dec 6 08:14:23 UTC 2018


# HG changeset patch
# User Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
# Date 1543955255 -3600
#      Tue Dec 04 21:27:35 2018 +0100
# Node ID 7e7de9b59fb7af2f1926e628c88a50a0498d9dba
# Parent  cf7e97eceeed93f74bf2db3b6ffaca4b55896a70
lib: remove unused method 'notify' from DbManage

This method is no longer used.
Last usage was removed in 46db3368c2ae and previously c7ef77ab2f95.

diff --git a/kallithea/lib/db_manage.py b/kallithea/lib/db_manage.py
--- a/kallithea/lib/db_manage.py
+++ b/kallithea/lib/db_manage.py
@@ -54,14 +54,6 @@ from kallithea.model.permission import P
 log = logging.getLogger(__name__)
 
 
-def notify(msg):
-    """
-    Notification for migrations messages
-    """
-    ml = len(msg) + (4 * 2)
-    print('\n%s\n*** %s ***\n%s' % ('*' * ml, msg, '*' * ml)).upper()
-
-
 class DbManage(object):
     def __init__(self, dbconf, root, tests=False, SESSION=None, cli_args=None):
         self.dbname = dbconf.split('/')[-1]


More information about the kallithea-general mailing list