mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
C++: Remove unneeded CPython toString overrides
These were made redundant when a1e44041e changed their parent class to
extend `Element`.
This commit is contained in:
@@ -77,11 +77,6 @@ class PythonClass extends Variable, CObject {
|
||||
/* This needs to be kept in sync with extractor-python/semmle/passes/type.py */
|
||||
result = "C_type$" + this.getTpName()
|
||||
}
|
||||
|
||||
/** Gets a textual representation of this element. */
|
||||
override string toString() {
|
||||
result = Variable.super.toString()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -518,12 +513,6 @@ class PythonExtensionFunction extends Function {
|
||||
}
|
||||
|
||||
class TypedPythonExtensionProperty extends PythonGetSetTableEntry, CObject {
|
||||
|
||||
override
|
||||
string toString() {
|
||||
result = PythonGetSetTableEntry.super.toString()
|
||||
}
|
||||
|
||||
PythonClass getPropertyType() {
|
||||
result = py_return_type(this.getGetter())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user