From 06b12bbb682c99d2f004881339ecb9a87c2f67fe Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 27 Apr 2023 10:55:14 +0200 Subject: [PATCH] Remove unnecessarily general `keystroke_label_for` function --- crates/theme/src/ui.rs | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/crates/theme/src/ui.rs b/crates/theme/src/ui.rs index 0f58ee08ad..1198e81e92 100644 --- a/crates/theme/src/ui.rs +++ b/crates/theme/src/ui.rs @@ -139,27 +139,11 @@ pub fn keystroke_label( ) -> Container { // FIXME: Put the theme in it's own global so we can // query the keystroke style on our own - keystroke_label_for( - cx.handle().id(), - label_text, - label_style, - keystroke_style, - action, - ) -} - -pub fn keystroke_label_for( - view_id: usize, - label_text: &'static str, - label_style: &ContainedText, - keystroke_style: &ContainedText, - action: Box, -) -> Container { Flex::row() .with_child(Label::new(label_text, label_style.text.clone()).contained()) .with_child( KeystrokeLabel::new( - view_id, + cx.view_id(), action, keystroke_style.container, keystroke_style.text.clone(),