Commit f7f03738 authored by Bernardo Dal Seno's avatar Bernardo Dal Seno
Browse files

Remove unused code

After changing the way gnt-xxx info print their output,
cli.FormatParameterDict() is not used anymore.
Signed-off-by: default avatarBernardo Dal Seno <>
Reviewed-by: default avatarHelga Velroyen <>
parent 5f6d1b42
......@@ -234,7 +234,6 @@ __all__ = [
"ToStderr", "ToStdout",
......@@ -3592,33 +3591,6 @@ class JobExecutor(object):
return [row[1:3] for row in]
def FormatParameterDict(buf, param_dict, actual, level=1):
"""Formats a parameter dictionary.
@type buf: L{StringIO}
@param buf: the buffer into which to write
@type param_dict: dict
@param param_dict: the own parameters
@type actual: dict
@param actual: the current parameter set (including defaults)
@param level: Level of indent
indent = " " * level
for key in sorted(actual):
data = actual[key]
buf.write("%s- %s:" % (indent, key))
if isinstance(data, dict) and data:
FormatParameterDict(buf, param_dict.get(key, {}), data,
level=level + 1)
val = param_dict.get(key, "default (%s)" % data)
buf.write(" %s\n" % val)
def FormatParamsDictInfo(param_dict, actual):
"""Formats a parameter dictionary.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment