Remove dead code from HyASTCompiler.compile

This commit is contained in:
Kodi Arfer 2018-06-19 16:36:15 -07:00
parent 00150c088c
commit fca2eb93b0

View File

@ -348,7 +348,6 @@ class HyASTCompiler(object):
return Result() return Result()
try: try:
ret = self.compile_atom(tree) ret = self.compile_atom(tree)
if ret:
self.update_imports(ret) self.update_imports(ret)
return ret return ret
except HyCompileError: except HyCompileError:
@ -356,13 +355,11 @@ class HyASTCompiler(object):
# nested; so let's re-raise this exception, let's not wrap it in # nested; so let's re-raise this exception, let's not wrap it in
# another HyCompileError! # another HyCompileError!
raise raise
except HyTypeError as e: except HyTypeError:
raise raise
except Exception as e: except Exception as e:
raise_empty(HyCompileError, e, sys.exc_info()[2]) raise_empty(HyCompileError, e, sys.exc_info()[2])
raise HyCompileError(Exception("Unknown type: `%s'" % _type))
def _compile_collect(self, exprs, with_kwargs=False, dict_display=False, def _compile_collect(self, exprs, with_kwargs=False, dict_display=False,
oldpy_unpack=False): oldpy_unpack=False):
"""Collect the expression contexts from a list of compiled expression. """Collect the expression contexts from a list of compiled expression.