From 5dcdf2ceee2d9fcce9bb2bc5dcbafd5dbfc722b1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 15 Mar 2021 12:55:27 +0300 Subject: Move code to the appropriate layer StructureNodeKind is a type which is specific to a particular feature, file_structure. It shouldn't be in the "code shared by all ide features" part. --- crates/ide_db/src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'crates/ide_db') diff --git a/crates/ide_db/src/lib.rs b/crates/ide_db/src/lib.rs index e8cafba43..88ee4a87d 100644 --- a/crates/ide_db/src/lib.rs +++ b/crates/ide_db/src/lib.rs @@ -135,12 +135,6 @@ fn line_index(db: &dyn LineIndexDatabase, file_id: FileId) -> Arc { Arc::new(LineIndex::new(&*text)) } -#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] -pub enum StructureNodeKind { - SymbolKind(SymbolKind), - Region, -} - #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)] pub enum SymbolKind { Const, -- cgit v1.2.3