Remove useless usage of templating in SWF responses implementation

This commit is contained in:
Jean-Baptiste Barth 2015-10-02 03:58:26 +02:00
parent 33c478bc62
commit 168f61c6a8

View File

@ -76,8 +76,7 @@ class SWFResponse(BaseResponse):
name = _type["name"] name = _type["name"]
version = _type["version"] version = _type["version"]
self.swf_backend.deprecate_type(kind, domain, name, version) self.swf_backend.deprecate_type(kind, domain, name, version)
template = self.response_template("") return ""
return template.render()
# TODO: implement pagination # TODO: implement pagination
def list_domains(self): def list_domains(self):
@ -136,8 +135,7 @@ class SWFResponse(BaseResponse):
default_task_start_to_close_timeout=default_task_start_to_close_timeout, default_task_start_to_close_timeout=default_task_start_to_close_timeout,
description=description, description=description,
) )
template = self.response_template("") return ""
return template.render()
def deprecate_activity_type(self): def deprecate_activity_type(self):
return self._deprecate_type("activity") return self._deprecate_type("activity")
@ -171,8 +169,7 @@ class SWFResponse(BaseResponse):
default_execution_start_to_close_timeout=default_execution_start_to_close_timeout, default_execution_start_to_close_timeout=default_execution_start_to_close_timeout,
description=description, description=description,
) )
template = self.response_template("") return ""
return template.render()
def deprecate_workflow_type(self): def deprecate_workflow_type(self):
return self._deprecate_type("workflow") return self._deprecate_type("workflow")