From 33c7c23b03aca7ab552ff4ad8aa654e13029c770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Muska=C5=82a?= Date: Thu, 5 Aug 2021 12:02:52 +0100 Subject: [PATCH] Remove unused structs in ide_db --- crates/ide_db/src/apply_change.rs | 32 ++----------------------------- 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/crates/ide_db/src/apply_change.rs b/crates/ide_db/src/apply_change.rs index f988572ae72..80252597d96 100644 --- a/crates/ide_db/src/apply_change.rs +++ b/crates/ide_db/src/apply_change.rs @@ -1,44 +1,16 @@ //! Applies changes to the IDE state transactionally. -use std::{fmt, sync::Arc}; +use std::sync::Arc; use base_db::{ salsa::{Database, Durability, SweepStrategy}, - Change, FileId, SourceRootId, + Change, SourceRootId, }; use profile::{memory_usage, Bytes}; use rustc_hash::FxHashSet; use crate::{symbol_index::SymbolsDatabase, RootDatabase}; -#[derive(Debug)] -struct AddFile { - file_id: FileId, - path: String, - text: Arc, -} - -#[derive(Debug)] -struct RemoveFile { - file_id: FileId, - path: String, -} - -#[derive(Default)] -struct RootChange { - added: Vec, - removed: Vec, -} - -impl fmt::Debug for RootChange { - fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - fmt.debug_struct("RootChange") - .field("added", &self.added.len()) - .field("removed", &self.removed.len()) - .finish() - } -} - impl RootDatabase { pub fn request_cancellation(&mut self) { let _p = profile::span("RootDatabase::request_cancellation");