Skip to content

Commit ea26ac8

Browse files
committed
C++: Remove unneeded CPython toString overrides
These were made redundant when a1e4404 changed their parent class to extend `Element`.
1 parent 38fe45e commit ea26ac8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

cpp/ql/src/CPython/Extensions.qll

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ class PythonClass extends Variable, CObject {
7777
/* This needs to be kept in sync with extractor-python/semmle/passes/type.py */
7878
result = "C_type$" + this.getTpName()
7979
}
80-
81-
/** Gets a textual representation of this element. */
82-
override string toString() {
83-
result = Variable.super.toString()
84-
}
8580
}
8681

8782
/**
@@ -518,12 +513,6 @@ class PythonExtensionFunction extends Function {
518513
}
519514

520515
class TypedPythonExtensionProperty extends PythonGetSetTableEntry, CObject {
521-
522-
override
523-
string toString() {
524-
result = PythonGetSetTableEntry.super.toString()
525-
}
526-
527516
PythonClass getPropertyType() {
528517
result = py_return_type(this.getGetter())
529518
}

0 commit comments

Comments
 (0)