From 775f9f8058ee80a35ea466d22b5d03e4d297e413 Mon Sep 17 00:00:00 2001 From: tisfeng Date: Mon, 8 Jan 2024 20:30:28 +0800 Subject: [PATCH] perf: remove unused variables --- Easydict/Feature/StatusItem/EZMenuItemManager.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Easydict/Feature/StatusItem/EZMenuItemManager.m b/Easydict/Feature/StatusItem/EZMenuItemManager.m index 7f87b5103..1d47cb1d6 100644 --- a/Easydict/Feature/StatusItem/EZMenuItemManager.m +++ b/Easydict/Feature/StatusItem/EZMenuItemManager.m @@ -16,9 +16,6 @@ #import "EZConfiguration.h" #import "Easydict-Swift.h" -static CGFloat const kImageMenuItemHeightRatio = 1.4; -static CGFloat const kTitleMenuItemHeightRatio = 1.2; - @interface EZMenuItemManager () @property (weak) IBOutlet NSMenu *menu; @@ -96,9 +93,7 @@ - (void)setup { self.appVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; self.versionItem.title = self.versionTitle; - - NSArray *items = @[self.versionItem, self.settingsItem, self.checkForUpdateItem, self.helpItem, self.quitItem]; - + [self updateVersionItem]; }