Skip to content

Commit c6db424

Browse files
Merge pull request #33 from nullinside-development-group/feat/update
chore: removing debugging code
2 parents 6cafc16 + f750ad4 commit c6db424

File tree

4 files changed

+3
-28
lines changed

4 files changed

+3
-28
lines changed

src/TwitchStreamingTools/Utilities/NAudioUtilities.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public static class NAudioUtilities {
2121
public static WaveInCapabilities GetInputDevice(int index) {
2222
var caps = new WaveInCapabilities();
2323
int structSize = Marshal.SizeOf(caps);
24+
// ReSharper disable once RedundantCast
2425
MmException.Try(WaveInterop.waveInGetDevCaps((IntPtr)index, out caps, structSize), "waveInGetDevCaps");
2526
return caps;
2627
}
@@ -33,6 +34,7 @@ public static WaveInCapabilities GetInputDevice(int index) {
3334
public static WaveOutCapabilities GetOutputDevice(int index) {
3435
var caps = new WaveOutCapabilities();
3536
int structSize = Marshal.SizeOf(caps);
37+
// ReSharper disable once RedundantCast
3638
MmException.Try(WaveInterop.waveOutGetDevCaps((IntPtr)index, out caps, structSize), "waveOutGetDevCaps");
3739
return caps;
3840
}

src/TwitchStreamingTools/ViewModels/MainWindowViewModel.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ public class MainWindowViewModel : ViewModelBase {
2525
/// </summary>
2626
private readonly IServiceProvider _provider;
2727

28-
private string? _error;
29-
3028
/// <summary>
3129
/// A flag indicating whether the menu is open.
3230
/// </summary>
@@ -104,14 +102,6 @@ public MenuItem SelectedMenuItem {
104102
set => this.RaiseAndSetIfChanged(ref _selectedMenuItem, value);
105103
}
106104

107-
/// <summary>
108-
/// fuck
109-
/// </summary>
110-
public string? Error {
111-
get => _error;
112-
set => this.RaiseAndSetIfChanged(ref _error, value);
113-
}
114-
115105
/// <summary>
116106
/// Links the <see cref="Page" /> showing on the screen with changes to the <see cref="SelectedMenuItem" />.
117107
/// </summary>

src/TwitchStreamingTools/Views/MainWindow.axaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
<SplitView.Pane>
5858
<StackPanel Spacing="5"
5959
Margin="5">
60-
<TextBox Text="{Binding Error}" />
6160
<Button Command="{Binding OnToggleMenu}">
6261
<PathIcon Data="{StaticResource LineHorizontal3Regular}" />
6362
</Button>

src/TwitchStreamingTools/Views/MainWindow.axaml.cs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,7 @@ protected override void OnInitialized() {
4646

4747
string[] args = Environment.GetCommandLineArgs();
4848
if (args.Contains("--update")) {
49-
_ = GitHubUpdateManager.PerformUpdateAndRestart("nullinside-development-group", "twitch-streaming-tools", args[2], "windows-x64.zip").ContinueWith(t => {
50-
Dispatcher.UIThread.Invoke(() => {
51-
var fuck = DataContext as MainWindowViewModel;
52-
if (null == fuck) {
53-
return;
54-
}
55-
56-
string message = "No error message was provided.";
57-
if (null != t.Exception) {
58-
message = t.Exception.Message;
59-
message += "|";
60-
message += t.Exception.StackTrace;
61-
}
62-
63-
fuck.Error = message;
64-
});
65-
});
49+
_ = GitHubUpdateManager.PerformUpdateAndRestart("nullinside-development-group", "twitch-streaming-tools", args[2], "windows-x64.zip");
6650
return;
6751
}
6852

0 commit comments

Comments
 (0)