Skip to content

Commit df666dd

Browse files
committed
Remove duplicate generic_getattr in builtins::object
Signed-off-by: snowapril <sinjihng@gmail.com>
1 parent 09f7d92 commit df666dd

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

vm/src/builtins/object.rs

-4
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,6 @@ pub fn object_set_dict(obj: PyObjectRef, dict: PyDictRef, vm: &VirtualMachine) -
330330
.map_err(|_| vm.new_attribute_error("This object has no __dict__".to_owned()))
331331
}
332332

333-
pub fn generic_getattr(obj: PyObjectRef, attr_name: PyStrRef, vm: &VirtualMachine) -> PyResult {
334-
obj.as_object().generic_getattr(attr_name, vm)
335-
}
336-
337333
pub fn init(ctx: &Context) {
338334
PyBaseObject::extend_class(ctx, &ctx.types.object_type);
339335
}

vm/src/types/slot.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
pub use crate::builtins::object::generic_getattr;
21
use crate::common::{hash::PyHash, lock::PyRwLock};
32
use crate::{
43
builtins::{PyInt, PyStrRef, PyType, PyTypeRef},

0 commit comments

Comments
 (0)