mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Remove unused VirtualMachine.call function
This commit is contained in:
@@ -33,13 +33,6 @@ pub struct VirtualMachine {
|
||||
}
|
||||
|
||||
impl VirtualMachine {
|
||||
fn call(&mut self, f: PyObjectRef) -> PyResult {
|
||||
let args = PyFuncArgs {
|
||||
args: Vec::new(),
|
||||
};
|
||||
self.invoke(f, args)
|
||||
}
|
||||
|
||||
pub fn run_code_obj(&mut self, code: PyObjectRef, scope: PyObjectRef) -> PyResult {
|
||||
let frame = Frame::new(code, scope);
|
||||
self.run_frame(frame)
|
||||
|
||||
Reference in New Issue
Block a user