Skip to content

Commit c3ee61f

Browse files
authored
Code Quality: Removed IsPageMainPane property (#11954)
1 parent b7d0d48 commit c3ee61f

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

src/Files.App/IShellPage.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ public interface IPaneHolder : IDisposable, INotifyPropertyChanged
9494

9595
public interface IMultiPaneInfo
9696
{
97-
// The instance is the left or only pane
98-
public bool IsPageMainPane { get; }
99-
10097
public IPaneHolder PaneHolder { get; }
10198
}
10299
}

src/Files.App/Views/BaseShellPage.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,6 @@ public BaseLayout ContentPage
9595
}
9696
}
9797

98-
protected bool isPageMainPane;
99-
public bool IsPageMainPane
100-
{
101-
get => isPageMainPane;
102-
set
103-
{
104-
if (value != isPageMainPane)
105-
{
106-
isPageMainPane = value;
107-
108-
NotifyPropertyChanged(nameof(IsPageMainPane));
109-
}
110-
}
111-
}
112-
11398
protected IPaneHolder paneHolder;
11499
public IPaneHolder PaneHolder
115100
{

src/Files.App/Views/PaneHolderPage.xaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
<local:ModernShellPage
7777
x:Name="PaneLeft"
7878
ContentChanged="Pane_ContentChanged"
79-
IsPageMainPane="True"
8079
Loaded="Pane_Loaded"
8180
NavParams="{x:Bind NavParamsLeft, Mode=OneWay}"
8281
PaneHolder="{x:Bind}" />
@@ -89,7 +88,6 @@
8988
<local:ModernShellPage
9089
x:Name="PaneRight"
9190
ContentChanged="Pane_ContentChanged"
92-
IsPageMainPane="False"
9391
Loaded="Pane_Loaded"
9492
NavParams="{x:Bind NavParamsRight, Mode=OneWay}"
9593
PaneHolder="{x:Bind}" />

0 commit comments

Comments
 (0)