mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
interrogate: remove deprecated and unneeded downcastTo*() functions
They have not been needed for a very long time, and they create an awkward reverse dependency of base classes on derived classes.
This commit is contained in:
parent
b62435a373
commit
2450f31ef5
@ -3500,6 +3500,10 @@ write_function_for_name(ostream &out, Object *obj,
|
|||||||
|
|
||||||
out << " */\n";
|
out << " */\n";
|
||||||
|
|
||||||
|
if (has_this && obj == nullptr) {
|
||||||
|
assert(obj != nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
out << function_name << " {\n";
|
out << function_name << " {\n";
|
||||||
|
|
||||||
if (has_this) {
|
if (has_this) {
|
||||||
@ -7007,7 +7011,7 @@ record_object(TypeIndex type_index) {
|
|||||||
object->_methods.push_back(function);
|
object->_methods.push_back(function);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (itype.derivation_has_downcast(di)) {
|
/*if (itype.derivation_has_downcast(di)) {
|
||||||
// Downcasts are methods of the base class, not the child class.
|
// Downcasts are methods of the base class, not the child class.
|
||||||
TypeIndex base_type_index = itype.get_derivation(di);
|
TypeIndex base_type_index = itype.get_derivation(di);
|
||||||
|
|
||||||
@ -7020,7 +7024,7 @@ record_object(TypeIndex type_index) {
|
|||||||
pobject->_methods.push_back(function);
|
pobject->_methods.push_back(function);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user