mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
chore: remove unused method
This commit is contained in:
parent
c5e0607915
commit
3d70ba7f94
1 changed files with 0 additions and 7 deletions
|
@ -108,13 +108,6 @@ pub enum ChangeKind {
|
|||
}
|
||||
|
||||
impl Vfs {
|
||||
/// Amount of files currently stored.
|
||||
///
|
||||
/// Note that this includes deleted files.
|
||||
pub fn len(&self) -> usize {
|
||||
self.data.len()
|
||||
}
|
||||
|
||||
/// Id of the given path if it exists in the `Vfs` and is not deleted.
|
||||
pub fn file_id(&self, path: &VfsPath) -> Option<FileId> {
|
||||
self.interner.get(path).filter(|&it| self.get(it).is_some())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue