Skip to content

Commit 33c7c23

Browse files
committed
Remove unused structs in ide_db
1 parent 80f5220 commit 33c7c23

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

crates/ide_db/src/apply_change.rs

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,16 @@
11
//! Applies changes to the IDE state transactionally.
22
3-
use std::{fmt, sync::Arc};
3+
use std::sync::Arc;
44

55
use base_db::{
66
salsa::{Database, Durability, SweepStrategy},
7-
Change, FileId, SourceRootId,
7+
Change, SourceRootId,
88
};
99
use profile::{memory_usage, Bytes};
1010
use rustc_hash::FxHashSet;
1111

1212
use crate::{symbol_index::SymbolsDatabase, RootDatabase};
1313

14-
#[derive(Debug)]
15-
struct AddFile {
16-
file_id: FileId,
17-
path: String,
18-
text: Arc<String>,
19-
}
20-
21-
#[derive(Debug)]
22-
struct RemoveFile {
23-
file_id: FileId,
24-
path: String,
25-
}
26-
27-
#[derive(Default)]
28-
struct RootChange {
29-
added: Vec<AddFile>,
30-
removed: Vec<RemoveFile>,
31-
}
32-
33-
impl fmt::Debug for RootChange {
34-
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
35-
fmt.debug_struct("RootChange")
36-
.field("added", &self.added.len())
37-
.field("removed", &self.removed.len())
38-
.finish()
39-
}
40-
}
41-
4214
impl RootDatabase {
4315
pub fn request_cancellation(&mut self) {
4416
let _p = profile::span("RootDatabase::request_cancellation");

0 commit comments

Comments
 (0)