Code cleanup

This commit is contained in:
Jokob-sk
2023-04-13 22:30:27 +10:00
parent 2176c58cb5
commit 4aa1848ece
4 changed files with 3 additions and 25 deletions

View File

@@ -4160,21 +4160,6 @@ def combine_plugin_objects(old, new):
# return the new object, with some of the old values
return new
#-------------------------------------------------------------------------------
# Replace {wildcars} with parameters
def resolve_wildcards(command, params):
mylog('debug', [' [Plugins]: Pre-Resolved CMD: ', command])
for param in params:
mylog('debug', [' [Plugins]: key : {', param[0], '}'])
mylog('debug', [' [Plugins]: resolved: ', param[1]])
command = command.replace('{' + param[0] + '}', param[1])
mylog('debug', [' [Plugins]: Resolved CMD: ', command])
return command
#-------------------------------------------------------------------------------
# Replace {wildcars} with parameters
def resolve_wildcards_arr(commandArr, params):