Remove unused render_json

This commit is contained in:
enkore 2013-10-18 19:23:41 +02:00
parent a983a744be
commit 26165647e3
2 changed files with 1 additions and 8 deletions

View File

@ -71,7 +71,7 @@ class Config:
continue
module.run()
output = module.output or {"full_text": "(no output)"}
print(render_json(output))
print(output.get("full_text", ""))
i3pystatus.Status = TestStatus
yield

View File

@ -348,13 +348,6 @@ class TimeWrapper:
).strip()
def render_json(json):
if not json.get("full_text", ""):
return ""
return json["full_text"]
def require(predicate):
"""
Decorator factory for methods requiring a predicate. If the predicate is not fulfilled during a method call, the