Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelwgn committed Dec 9, 2023
1 parent 6379bcd commit b6b733f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Files.App/UserControls/SideBar/SideBarItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using System.Collections.Specialized;
using Vanara.InteropServices;
using Windows.ApplicationModel.DataTransfer;
using Windows.Foundation;

namespace Files.App.UserControls.Sidebar
{
Expand Down Expand Up @@ -81,7 +79,6 @@ private void SidebarItem_Loaded(object sender, RoutedEventArgs e)
{
childrenRepeater = repeater;
repeater.ElementPrepared += ChildrenPresenter_ElementPrepared;
repeater.SizeChanged += ChildrenPresenter_SizeChanged;
}
if (GetTemplateChild("FlyoutChildrenPresenter") is ItemsRepeater flyoutRepeater)
{
Expand All @@ -101,14 +98,6 @@ public void HandleItemChange()
Decorator = Item.ItemDecorator;
}

private void ChildrenPresenter_SizeChanged(object sender, SizeChangedEventArgs e)
{
if (e.NewSize.Height > 1)
{
//ChildrenPresenterHeight = e.NewSize.Height;
}
}

private void HookupOwners()
{
FrameworkElement resolvingTarget = this;
Expand Down

0 comments on commit b6b733f

Please sign in to comment.