diff --git a/crates/ruff_python_semantic/src/scope.rs b/crates/ruff_python_semantic/src/scope.rs index c53a6b43d2..22f0983915 100644 --- a/crates/ruff_python_semantic/src/scope.rs +++ b/crates/ruff_python_semantic/src/scope.rs @@ -85,11 +85,6 @@ impl<'a> Scope<'a> { } } - /// Removes the binding with the given name. - pub fn delete(&mut self, name: &'a str) -> Option { - self.bindings.remove(name) - } - /// Returns `true` if this scope has a binding with the given name. pub fn has(&self, name: &str) -> bool { self.bindings.contains_key(name)