From d769fa93175ca2792bd89a66e89894ce62000e48 Mon Sep 17 00:00:00 2001 From: Adam Kelly Date: Wed, 6 Mar 2019 19:08:37 +0000 Subject: [PATCH] Remove unused function. --- vm/src/obj/objtype.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vm/src/obj/objtype.rs b/vm/src/obj/objtype.rs index 3962fd285..750ccff2d 100644 --- a/vm/src/obj/objtype.rs +++ b/vm/src/obj/objtype.rs @@ -95,10 +95,6 @@ fn _mro(cls: PyObjectRef) -> Option> { } } -pub fn base_classes(obj: &PyObjectRef) -> Vec { - _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 {