mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Remove dead code
This commit is contained in:
parent
fce6bc0acc
commit
2e2c2e62eb
1 changed files with 1 additions and 18 deletions
|
@ -25,7 +25,7 @@ use std::{
|
||||||
time::Instant,
|
time::Instant,
|
||||||
};
|
};
|
||||||
|
|
||||||
use relative_path::{RelativePath,RelativePathBuf};
|
use relative_path::RelativePath;
|
||||||
use once_cell::sync::OnceCell;
|
use once_cell::sync::OnceCell;
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
|
|
||||||
|
@ -138,23 +138,6 @@ impl WorldState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
pub struct QuickFix {
|
|
||||||
pub fs_ops: Vec<FsOp>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
pub enum FsOp {
|
|
||||||
CreateFile {
|
|
||||||
anchor: FileId,
|
|
||||||
path: RelativePathBuf,
|
|
||||||
},
|
|
||||||
MoveFile {
|
|
||||||
file: FileId,
|
|
||||||
path: RelativePathBuf,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl World {
|
impl World {
|
||||||
pub fn file_syntax(&self, file_id: FileId) -> Result<File> {
|
pub fn file_syntax(&self, file_id: FileId) -> Result<File> {
|
||||||
let data = self.file_data(file_id)?;
|
let data = self.file_data(file_id)?;
|
||||||
|
|
Loading…
Reference in a new issue