10000 Remove unnecessary operator() check · robotpy/robotpy-cppheaderparser@4ecb8a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ecb8a4

Browse files
committed
Remove unnecessary operator() check
1 parent 286001c commit 4ecb8a4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

CppHeaderParser/CppHeaderParser.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3288,13 +3288,6 @@ def _evaluate_stack(self, token=None):
32883288
debug_caller_lineno,
32893289
)
32903290

3291-
# Handle special case of overloading operator ()
3292-
if "operator()(" in "".join(self.nameStack):
3293-
operator_index = self.nameStack.index("operator")
3294-
self.nameStack.pop(operator_index + 2)
3295-
self.nameStack.pop(operator_index + 1)
3296-
self.nameStack[operator_index] = "operator()"
3297-
32983291
if len(self.curClass):
32993292
debug_print("%s (%s) ", self.curClass, self.curAccessSpecifier)
33003293
else:

0 commit comments

Comments
 (0)
0