mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Remove unused function.
This commit is contained in:
1 parent
10bbfc6a34
commit
d769fa9317
1 file changed
-4
@@ -95,10 +95,6 @@ fn _mro(cls: PyObjectRef) -> Option<Vec<PyObjectRef>> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn base_classes(obj: &PyObjectRef) -> Vec<PyObjectRef> {
|
||||
_mro(obj.typ()).unwrap()
|
||||
}
|
||||
|
||||
/// Determines if `obj` actually an instance of `cls`, this doesn't call __instancecheck__, so only
|
||||
/// use this if `cls` is known to have not overridden the base __instancecheck__ magic method.
|
||||
pub fn isinstance(obj: &PyObjectRef, cls: &PyObjectRef) -> bool {
|
||||
|
||||
Reference in new issue
Block a user