From: parmentelat Date: Thu, 13 Dec 2018 15:17:14 +0000 (+0100) Subject: clean up unused SetRole() in 000-functions X-Git-Tag: plcapi-7.0-0~18 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=87e18d743c775fc8f3dfb3972e183567d940e7c6 clean up unused SetRole() in 000-functions --- diff --git a/db-config.d/000-functions b/db-config.d/000-functions index bc0e8e7..f304036 100644 --- a/db-config.d/000-functions +++ b/db-config.d/000-functions @@ -8,16 +8,6 @@ def SetMyPLCURL(url): global g_url g_url = url -# Get all currently registered roles -g_role_names = [ role['name'] for role in GetRoles()] -g_role_names.sort() - -def SetRole(level, role): - global g_role_names - if role not in g_role_names: - AddRole(level, role) - g_role_names.append(role) - g_role_names.sort() # Get list of existing tag types g_known_tag_types = [tag_type['tagname'] for tag_type in GetTagTypes()]