Commit aea63286 authored by Robert Bradshaw's avatar Robert Bradshaw

cleanup relative to 0.12

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