Commit aea63286 authored by Robert Bradshaw's avatar Robert Bradshaw

cleanup relative to 0.12

parent 79eb3441
...@@ -4036,6 +4036,7 @@ class UnboundMethodNode(ExprNode): ...@@ -4036,6 +4036,7 @@ class UnboundMethodNode(ExprNode):
code.error_goto_if_null(self.result(), self.pos))) code.error_goto_if_null(self.result(), self.pos)))
code.put_gotref(self.py_result()) code.put_gotref(self.py_result())
class PyCFunctionNode(AtomicExprNode): class PyCFunctionNode(AtomicExprNode):
# Helper class used in the implementation of Python # Helper class used in the implementation of Python
# class definitions. Constructs a PyCFunction object # class definitions. Constructs a PyCFunction object
...@@ -4127,7 +4128,6 @@ class UnopNode(ExprNode): ...@@ -4127,7 +4128,6 @@ class UnopNode(ExprNode):
if self.is_py_operation(): if self.is_py_operation():
self.gil_error() self.gil_error()
def is_cpp_operation(self): def is_cpp_operation(self):
return self.operand.type.is_cpp_class return self.operand.type.is_cpp_class
...@@ -4168,7 +4168,6 @@ class UnopNode(ExprNode): ...@@ -4168,7 +4168,6 @@ class UnopNode(ExprNode):
self.type = function.type.return_type self.type = function.type.return_type
class NotNode(ExprNode): class NotNode(ExprNode):
# 'not' operator # 'not' operator
# #
...@@ -4749,7 +4748,6 @@ class NumBinopNode(BinopNode): ...@@ -4749,7 +4748,6 @@ class NumBinopNode(BinopNode):
def py_operation_function(self): def py_operation_function(self):
return self.py_functions[self.operator] return self.py_functions[self.operator]
py_functions = { py_functions = {
"|": "PyNumber_Or", "|": "PyNumber_Or",
"^": "PyNumber_Xor", "^": "PyNumber_Xor",
...@@ -5523,7 +5521,6 @@ class PrimaryCmpNode(ExprNode, CmpNode): ...@@ -5523,7 +5521,6 @@ class PrimaryCmpNode(ExprNode, CmpNode):
self.operand2.analyse_types(env) self.operand2.analyse_types(env)
if self.is_cpp_comparison(): if self.is_cpp_comparison():
self.analyse_cpp_comparison(env) self.analyse_cpp_comparison(env)
return
if self.cascade: if self.cascade:
self.cascade.analyse_types(env) self.cascade.analyse_types(env)
......
...@@ -76,7 +76,6 @@ class Context(object): ...@@ -76,7 +76,6 @@ class Context(object):
self.compiler_directives = compiler_directives self.compiler_directives = compiler_directives
self.cpp = cpp self.cpp = cpp
self.pxds = {} # full name -> node tree self.pxds = {} # full name -> node tree
standard_include_path = os.path.abspath( standard_include_path = os.path.abspath(
......
...@@ -342,7 +342,6 @@ class StatListNode(Node): ...@@ -342,7 +342,6 @@ class StatListNode(Node):
def analyse_expressions(self, env): def analyse_expressions(self, env):
#print "StatListNode.analyse_expressions" ### #print "StatListNode.analyse_expressions" ###
entry = env.entries.get("cpp_sum", None)
for stat in self.stats: for stat in self.stats:
stat.analyse_expressions(env) stat.analyse_expressions(env)
......
...@@ -6,7 +6,6 @@ cache_builtins = 1 # Perform lookups on builtin names only once ...@@ -6,7 +6,6 @@ cache_builtins = 1 # Perform lookups on builtin names only once
embed_pos_in_docstring = 0 embed_pos_in_docstring = 0
gcc_branch_hints = 1 gcc_branch_hints = 1
cplus = 0
pre_import = None pre_import = None
docstrings = True docstrings = True
......
...@@ -151,4 +151,3 @@ cpdef p_code(PyrexScanner s, level= *) ...@@ -151,4 +151,3 @@ cpdef p_code(PyrexScanner s, level= *)
cpdef p_compiler_directive_comments(PyrexScanner s) cpdef p_compiler_directive_comments(PyrexScanner s)
cpdef p_module(PyrexScanner s, pxd, full_module_name) cpdef p_module(PyrexScanner s, pxd, full_module_name)
cpdef p_cpp_class_definition(PyrexScanner s, ctx) cpdef p_cpp_class_definition(PyrexScanner s, ctx)
...@@ -1908,7 +1908,6 @@ def p_buffer_or_template(s, base_type_node): ...@@ -1908,7 +1908,6 @@ def p_buffer_or_template(s, base_type_node):
return result return result
def looking_at_name(s): def looking_at_name(s):
return s.sy == 'IDENT' and not s.systring in calling_convention_words return s.sy == 'IDENT' and not s.systring in calling_convention_words
......
...@@ -1359,7 +1359,6 @@ class CNullPtrType(CPtrType): ...@@ -1359,7 +1359,6 @@ class CNullPtrType(CPtrType):
is_null_ptr = 1 is_null_ptr = 1
class CReferenceType(CType): class CReferenceType(CType):
is_reference = 1 is_reference = 1
...@@ -2271,7 +2270,6 @@ def best_match(args, functions, pos): ...@@ -2271,7 +2270,6 @@ def best_match(args, functions, pos):
return None return None
def widest_numeric_type(type1, type2): def widest_numeric_type(type1, type2):
# Given two numeric types, return the narrowest type # Given two numeric types, return the narrowest type
# encompassing both of them. # encompassing both of them.
......
...@@ -1483,7 +1483,6 @@ class CClassScope(ClassScope): ...@@ -1483,7 +1483,6 @@ class CClassScope(ClassScope):
entry.is_inherited = 1 entry.is_inherited = 1
class CppClassScope(Scope): class CppClassScope(Scope):
# Namespace of a C++ class. # Namespace of a C++ class.
inherited_var_entries = [] inherited_var_entries = []
......
...@@ -12,6 +12,7 @@ class TestDecorator(TransformTest): ...@@ -12,6 +12,7 @@ class TestDecorator(TransformTest):
def decorated(): def decorated():
pass pass
""") """)
self.assertCode(u""" self.assertCode(u"""
def decorator(fun): def decorator(fun):
return fun return fun
......
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