mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 06:05:19 +00:00
fixup! Remove dead code (for now).
This commit is contained in:
parent
27600b6b8d
commit
ae1ebc6858
2 changed files with 6 additions and 9 deletions
|
@ -1,6 +1,3 @@
|
|||
use gpui::Action;
|
||||
|
||||
use crate::{ActivateRegexMode, ActivateSemanticMode, ActivateTextMode};
|
||||
// TODO: Update the default search mode to get from config
|
||||
#[derive(Copy, Clone, Debug, Default, PartialEq)]
|
||||
pub enum SearchMode {
|
||||
|
@ -11,11 +8,11 @@ pub enum SearchMode {
|
|||
}
|
||||
|
||||
impl SearchMode {
|
||||
pub(crate) fn activate_action(&self) -> Box<dyn Action> {
|
||||
pub(crate) fn label(&self) -> &'static str {
|
||||
match self {
|
||||
SearchMode::Text => Box::new(ActivateTextMode),
|
||||
SearchMode::Semantic => Box::new(ActivateSemanticMode),
|
||||
SearchMode::Regex => Box::new(ActivateRegexMode),
|
||||
SearchMode::Text => "Text",
|
||||
SearchMode::Semantic => "Semantic",
|
||||
SearchMode::Regex => "Regex",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use std::{borrow::Cow, sync::Arc};
|
||||
use std::sync::Arc;
|
||||
|
||||
use gpui::{div, Action, Component, ViewContext};
|
||||
use gpui::{Component, ViewContext};
|
||||
use ui::{Button, ButtonVariant, IconButton};
|
||||
|
||||
use crate::mode::SearchMode;
|
||||
|
|
Loading…
Reference in a new issue