Skip to content

Commit 127b318

Browse files
committed
Zap dead code
1 parent a4a06ba commit 127b318

2 files changed

Lines changed: 2 additions & 32 deletions

File tree

Native.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ static class Native
103103
const Int32 BufferLength = 0x00100000;
104104

105105
private static bool IsNtSuccess(uint code) => code <= 0x7FFFFFFF;
106-
private static bool IsNtInformation(uint code) => code >= 0x40000000 && code <= 0x7FFFFFFF;
107-
private static bool IsNtWarning(uint code) => code >= 0x80000000 && code <= 0xBFFFFFFF;
108-
private static bool IsNtError(uint code) => code >= 0xC0000000 && code <= 0xFFFFFFFF;
109106

110107
private static Win32Exception ExceptionFromLastError()
111108
{

PipeExplorerMainWindow.xaml

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -56,35 +56,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -->
5656
/>
5757

5858
<ToggleButton IsChecked="{Binding IsOpen, Source={x:Reference SettingsFlyout}}"
59-
Content="{x:Static res:Resources.Settings}"/>
60-
61-
<!--<metro:DropDownButton Content="{x:Static res:Resources.Settings}"
62-
Icon="{icons:Material Kind=SettingsHelper}">
63-
<metro:DropDownButton.ItemsSource>
64-
<CompositeCollection>
65-
<DockPanel>
66-
<Label Target="{x:Reference RefereshIntervalBox}" Content="{x:Static res:Resources.SettingsRefreshInterval}"/>
67-
<metro:NumericUpDown DockPanel.Dock="Right"
68-
x:Name="RefereshIntervalBox"
69-
Value="{Binding RefreshInterval}"
70-
StringFormat="{x:Static res:Resources.SettingsRefreshIntervalStringFormat}"
71-
Minimum="1" Maximum="99999"
72-
ParsingNumberStyle="AllowThousands"
73-
InterceptArrowKeys="True"
74-
ButtonsAlignment="Opposite"
75-
SwitchUpDownButtons="True"
76-
MinWidth="60"
77-
/>
78-
</DockPanel>
79-
80-
<metro:ToggleSwitch IsOn="{Binding StartImmediately}"
81-
Header="{x:Static res:Resources.SettingsStartImmediatelyHeader}"
82-
OnContent="{x:Static res:Resources.SettingsStartImmediatelyOn}"
83-
OffContent="{x:Static res:Resources.SettingsStartImmediatelyOff}"
84-
/>
85-
</CompositeCollection>
86-
</metro:DropDownButton.ItemsSource>
87-
</metro:DropDownButton>-->
59+
Content="{x:Static res:Resources.Settings}"
60+
/>
8861
</metro:WindowCommands>
8962
</metro:MetroWindow.RightWindowCommands>
9063

0 commit comments

Comments
 (0)