mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-09 21:28:21 +00:00
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
1 changed files with 0 additions and 5 deletions
|
@ -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.
|
||||
pub fn has(&self, name: &str) -> bool {
|
||||
self.bindings.contains_key(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue