From 0ebf976f4b649671f9c51c2d632f7d84e5f29124 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 10 Oct 2009 06:36:09 +0200 Subject: [PATCH] removed unused function --- Cython/Compiler/PyrexTypes.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 6f71360f..6e555af4 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -1855,19 +1855,6 @@ def c_ptr_type(base_type): return error_type else: return CPtrType(base_type) - -def Node_to_type(node, env): - from ExprNodes import NameNode, AttributeNode, StringNode, error - if isinstance(node, StringNode): - node = NameNode(node.pos, name=node.value) - if isinstance(node, NameNode) and node.name in rank_to_type_name: - return simple_c_type(1, 0, node.name) - elif isinstance(node, (AttributeNode, NameNode)): - node.analyze_types(env) - if not node.entry.is_type: - pass - else: - error(node.pos, "Bad type") def same_type(type1, type2): return type1.same_as(type2) -- 2.26.2