Removes dead code from context.request_context

Existing context.request_context() method has invalid
code which try to create RequestConext, but its not used
in heat anywhere. so those dead code is removed from heat.

Closes-bug: #1464655

Change-Id: Icb60f1ba40853523ef35730c2ba5bda6e5970771
This commit is contained in:
Kanagaraj Manickam 2015-08-20 14:56:55 +05:30
parent bf4ec9f1ae
commit 0576316ac4
1 changed files with 0 additions and 2 deletions

View File

@ -277,8 +277,6 @@ def ContextMiddleware_filter_factory(global_conf, **local_conf):
def request_context(func):
@six.wraps(func)
def wrapped(self, ctx, *args, **kwargs):
if ctx is not None and not isinstance(ctx, context.RequestContext):
ctx = context.RequestContext.from_dict(ctx.to_dict())
try:
return func(self, ctx, *args, **kwargs)
except exception.HeatException: