Skip to content

Commit 5d0b152

Browse files
TysonAndreautozimu
authored andcommitted
Remove unused viewports hashmap
1 parent dce9729 commit 5d0b152

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/language_server_protocol.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,10 +1948,6 @@ impl LanguageClient {
19481948
});
19491949

19501950
self.process_diagnostics(&current_filename, &diagnostics)?;
1951-
self.update(|state| {
1952-
state.viewports.remove(&filename);
1953-
Ok(())
1954-
})?;
19551951
self.languageClient_handleCursorMoved(&Value::Null)?;
19561952
self.vim()?
19571953
.rpcclient

src/types.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use super::*;
22
use crate::rpcclient::RpcClient;
33
use crate::sign::Sign;
4-
use crate::viewport::Viewport;
54
use crate::vim::Vim;
65
use std::collections::BTreeMap;
76
use std::sync::mpsc;
@@ -136,7 +135,6 @@ pub struct State {
136135
pub last_cursor_line: u64,
137136
pub last_line_diagnostic: String,
138137
pub stashed_codeAction_actions: Vec<CodeAction>,
139-
pub viewports: HashMap<String, Viewport>,
140138

141139
// User settings.
142140
pub serverCommands: HashMap<String, Vec<String>>,
@@ -213,7 +211,6 @@ impl State {
213211
last_cursor_line: 0,
214212
last_line_diagnostic: " ".into(),
215213
stashed_codeAction_actions: vec![],
216-
viewports: HashMap::new(),
217214

218215
serverCommands: HashMap::new(),
219216
autoStart: true,

0 commit comments

Comments
 (0)