mirror of https://github.com/astral-sh/ruff
Remove unused `Scope#delete` method (#5085)
## Summary This is now intentionally unused and is now made impossible (via this PR).
This commit is contained in:
parent
c74ef77e85
commit
6f10aeebaa
|
|
@ -85,11 +85,6 @@ impl<'a> Scope<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Removes the binding with the given name.
|
|
||||||
pub fn delete(&mut self, name: &'a str) -> Option<BindingId> {
|
|
||||||
self.bindings.remove(name)
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns `true` if this scope has a binding with the given name.
|
/// Returns `true` if this scope has a binding with the given name.
|
||||||
pub fn has(&self, name: &str) -> bool {
|
pub fn has(&self, name: &str) -> bool {
|
||||||
self.bindings.contains_key(name)
|
self.bindings.contains_key(name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue