From 3ef9ef34c6489e9a63790d2355e8ce279a511612 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Jul 2020 09:42:01 +0200 Subject: Reduce API --- crates/ra_ide/src/hover.rs | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs index d427ed46b..c32665142 100644 --- a/crates/ra_ide/src/hover.rs +++ b/crates/ra_ide/src/hover.rs @@ -73,20 +73,6 @@ pub struct HoverResult { pub actions: Vec, } -impl HoverResult { - pub fn new() -> HoverResult { - Self::default() - } - - pub fn is_empty(&self) -> bool { - self.markup.is_empty() - } - - fn push_action(&mut self, action: HoverAction) { - self.actions.push(action); - } -} - // Feature: Hover // // Shows additional information, like type of an expression or documentation for definition when "focusing" code. @@ -97,7 +83,7 @@ pub(crate) fn hover(db: &RootDatabase, position: FilePosition) -> Option Option