summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorda-woods <dw-git@d-woods.co.uk>2022-07-26 15:02:32 +0100
committerGitHub <noreply@github.com>2022-07-26 16:02:32 +0200
commit3f9fa1a46b90b9763b84ea5ec4319fdb5eba55f0 (patch)
tree4e56e175d9f9dd5498c4ccfa1ac919698d490a9c
parentea38521bf59edef9e6d22cbabf44229848091a76 (diff)
downloadcython-3f9fa1a46b90b9763b84ea5ec4319fdb5eba55f0.tar.gz
Remove unused function "looking_at_call" from parser (GH-4922)
-rw-r--r--Cython/Compiler/Parsing.pxd1
-rw-r--r--Cython/Compiler/Parsing.py10
2 files changed, 0 insertions, 11 deletions
diff --git a/Cython/Compiler/Parsing.pxd b/Cython/Compiler/Parsing.pxd
index dbed77415..233ef214e 100644
--- a/Cython/Compiler/Parsing.pxd
+++ b/Cython/Compiler/Parsing.pxd
@@ -159,7 +159,6 @@ cdef bint looking_at_name(PyrexScanner s) except -2
cdef object looking_at_expr(PyrexScanner s)# except -2
cdef bint looking_at_base_type(PyrexScanner s) except -2
cdef bint looking_at_dotted_name(PyrexScanner s) except -2
-cdef bint looking_at_call(PyrexScanner s) except -2
cdef p_sign_and_longness(PyrexScanner s)
cdef p_opt_cname(PyrexScanner s)
cpdef p_c_declarator(PyrexScanner s, ctx = *, bint empty = *, bint is_type = *, bint cmethod_flag = *,
diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py
index 60220282b..d7c844849 100644
--- a/Cython/Compiler/Parsing.py
+++ b/Cython/Compiler/Parsing.py
@@ -2853,16 +2853,6 @@ def looking_at_dotted_name(s):
else:
return 0
-def looking_at_call(s):
- "See if we're looking at a.b.c("
- # Don't mess up the original position, so save and restore it.
- # Unfortunately there's no good way to handle this, as a subsequent call
- # to next() will not advance the position until it reads a new token.
- position = s.start_line, s.start_col
- result = looking_at_expr(s) == u'('
- if not result:
- s.start_line, s.start_col = position
- return result
basic_c_type_names = cython.declare(frozenset, frozenset((
"void", "char", "int", "float", "double", "bint")))