From c63d410d10172a8b80108797adc54913cb6493cf Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 3 Aug 2020 17:32:15 +0800 Subject: [PATCH] optimize(Launcher): remove unused code --- SourceGit/UI/Launcher.xaml.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/SourceGit/UI/Launcher.xaml.cs b/SourceGit/UI/Launcher.xaml.cs index 6d8455e5..7cb79167 100644 --- a/SourceGit/UI/Launcher.xaml.cs +++ b/SourceGit/UI/Launcher.xaml.cs @@ -1,7 +1,6 @@ using System.Collections.ObjectModel; using System.Windows; using System.Windows.Controls; -using System.Windows.Input; namespace SourceGit.UI { @@ -177,19 +176,6 @@ namespace SourceGit.UI { private void Quit(object sender, RoutedEventArgs e) { App.Current.Shutdown(); } - - /// - /// Show system menu when user click logo. - /// - /// - /// - private void LogoMouseButtonDown(object sender, MouseButtonEventArgs e) { - var element = e.OriginalSource as FrameworkElement; - if (element == null) return; - - var pos = PointToScreen(new Point(0, 33)); - SystemCommands.ShowSystemMenu(this, pos); - } #endregion } }