git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7237e69
)
clean up unused SetRole() in 000-functions
author
parmentelat
<thierry.parmentelat@inria.fr>
Thu, 13 Dec 2018 15:17:14 +0000
(16:17 +0100)
committer
parmentelat
<thierry.parmentelat@inria.fr>
Thu, 13 Dec 2018 15:17:14 +0000
(16:17 +0100)
db-config.d/000-functions
patch
|
blob
|
history
diff --git
a/db-config.d/000-functions
b/db-config.d/000-functions
index
bc0e8e7
..
f304036
100644
(file)
--- 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()]