Skip to content

Commit

Permalink
Remove dead code in settingspage class (microsoft#875)
Browse files Browse the repository at this point in the history
* Remove dead code in settingspage class

* Removed another unused function

* Revert "Removed another unused function"

This reverts commit c7c170b.

Co-authored-by: Greg Woo <90726278+gregwoo-microsoft@users.noreply.github.com>
  • Loading branch information
marcelwgn and gregwoo-microsoft authored Mar 11, 2022
1 parent b4f8c16 commit 19b9cf0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions XamlControlsGallery/SettingsPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
using AppUIBasics.Common;
using AppUIBasics.Helper;
using Microsoft.Graphics.Canvas.Effects;
using System;
using System.Linq;
using Windows.ApplicationModel.Core;
using Windows.Storage;
using Windows.Storage.Pickers;
using Windows.System;
using Windows.UI;
using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
Expand Down Expand Up @@ -77,8 +72,6 @@ private void OnSettingsPageLoaded(object sender, RoutedEventArgs e)
private void OnThemeRadioButtonChecked(object sender, RoutedEventArgs e)
{
var selectedTheme = ((RadioButton)sender)?.Tag?.ToString();
ApplicationViewTitleBar titleBar = ApplicationView.GetForCurrentView().TitleBar;

if (selectedTheme != null)
{
ThemeHelper.RootTheme = App.GetEnum<ElementTheme>(selectedTheme);
Expand Down Expand Up @@ -117,11 +110,6 @@ private void soundToggle_Toggled(object sender, RoutedEventArgs e)
}
}

private void navigationToggle_Toggled(object sender, RoutedEventArgs e)
{
NavigationOrientationHelper.IsLeftMode = navigationLocation.SelectedIndex == 0;
}

private void screenshotModeToggle_Toggled(object sender, RoutedEventArgs e)
{
UIHelper.IsScreenshotMode = screenshotModeToggle.IsOn;
Expand Down

0 comments on commit 19b9cf0

Please sign in to comment.