diff --git a/.editorconfig b/.editorconfig index 088d0ba3..9c342b14 100644 --- a/.editorconfig +++ b/.editorconfig @@ -97,5 +97,6 @@ resharper_formatter_off_tag = @formatter:off resharper_formatter_on_tag = @formatter:on resharper_formatter_tags_enabled = true resharper_place_field_attribute_on_same_line = false +resharper_place_simple_anonymousmethod_on_single_line = false resharper_trailing_comma_in_multiline_lists = true resharper_use_indent_from_vs = false diff --git a/TwitchDownloaderCore.Tests/ToolTests/M3U8Tests.cs b/TwitchDownloaderCore.Tests/ToolTests/M3U8Tests.cs index 2855a5d2..aff18f4b 100644 --- a/TwitchDownloaderCore.Tests/ToolTests/M3U8Tests.cs +++ b/TwitchDownloaderCore.Tests/ToolTests/M3U8Tests.cs @@ -517,7 +517,6 @@ public void ThrowsFormatExceptionForBadResolutionString(string byteRangeString) Assert.Throws(() => M3U8.Stream.ExtStreamInfo.StreamResolution.Parse(byteRangeString)); } - [Theory] [InlineData("en-GB")] [InlineData("tr-TR")] diff --git a/TwitchDownloaderCore/ChatRenderer.cs b/TwitchDownloaderCore/ChatRenderer.cs index e34dd419..f6bf6e84 100644 --- a/TwitchDownloaderCore/ChatRenderer.cs +++ b/TwitchDownloaderCore/ChatRenderer.cs @@ -1882,7 +1882,6 @@ private static bool IsRightToLeft(ReadOnlySpan message) return chatRoot; } - #region ImplementIDisposable public void Dispose() diff --git a/TwitchDownloaderCore/Options/ChatRenderOptions.cs b/TwitchDownloaderCore/Options/ChatRenderOptions.cs index eb1456c7..6798f33f 100644 --- a/TwitchDownloaderCore/Options/ChatRenderOptions.cs +++ b/TwitchDownloaderCore/Options/ChatRenderOptions.cs @@ -72,7 +72,6 @@ public string MaskFile public double EmoteSpacingScale { get; set; } = 1.0; public double AccentStrokeScale { get; set; } = 1.0; public double AccentIndentScale { get; set; } = 1.0; - public int RenderThreads { get; set; } = 1; public int ChatBadgeMask { get; set; } = 0; public int StartOverride { get; set; } = -1; public int EndOverride { get; set; } = -1; diff --git a/TwitchDownloaderCore/Tools/DownloadTools.cs b/TwitchDownloaderCore/Tools/DownloadTools.cs index 0997872f..227ff76a 100644 --- a/TwitchDownloaderCore/Tools/DownloadTools.cs +++ b/TwitchDownloaderCore/Tools/DownloadTools.cs @@ -79,7 +79,6 @@ public static async Task DownloadFileAsync(HttpClient httpClient, Uri url, return response.Content.Headers.ContentLength ?? -1; } - /// /// Some old twitch VODs have files with a query string at the end such as 1.ts?offset=blah which isn't a valid filename /// diff --git a/TwitchDownloaderCore/TwitchObjects/Api/FFZEmote.cs b/TwitchDownloaderCore/TwitchObjects/Api/FFZEmote.cs index 76f414d6..bff55f19 100644 --- a/TwitchDownloaderCore/TwitchObjects/Api/FFZEmote.cs +++ b/TwitchDownloaderCore/TwitchObjects/Api/FFZEmote.cs @@ -2,7 +2,6 @@ namespace TwitchDownloaderCore.TwitchObjects.Api { - public class FFZEmote { public int id { get; set; } diff --git a/TwitchDownloaderCore/TwitchObjects/StvEmoteFlags.cs b/TwitchDownloaderCore/TwitchObjects/StvEmoteFlags.cs index e91653b0..b79529c2 100644 --- a/TwitchDownloaderCore/TwitchObjects/StvEmoteFlags.cs +++ b/TwitchDownloaderCore/TwitchObjects/StvEmoteFlags.cs @@ -10,7 +10,6 @@ public enum StvEmoteFlags Authentic = 1 << 1, // The emote was verified to be an original creation by the uploader ZeroWidth = 1 << 8, // The emote is recommended to be enabled as Zero-Width - // Content Flags ContentSexual = 1 << 16, // Sexually Suggestive diff --git a/TwitchDownloaderWPF/PageChatDownload.xaml.cs b/TwitchDownloaderWPF/PageChatDownload.xaml.cs index 4cf35224..1f295062 100644 --- a/TwitchDownloaderWPF/PageChatDownload.xaml.cs +++ b/TwitchDownloaderWPF/PageChatDownload.xaml.cs @@ -27,7 +27,6 @@ public enum DownloadType { Clip, Video } /// public partial class PageChatDownload : Page { - public DownloadType downloadType; public string downloadId; public int streamerId; @@ -584,7 +583,6 @@ private void CheckTrimEnd_OnCheckStateChanged(object sender, RoutedEventArgs e) SetEnabledTrimEnd(CheckTrimEnd.IsChecked.GetValueOrDefault()); } - private void MenuItemEnqueue_Click(object sender, RoutedEventArgs e) { var queueOptions = new WindowQueueOptions(this) diff --git a/TwitchDownloaderWPF/PageChatUpdate.xaml.cs b/TwitchDownloaderWPF/PageChatUpdate.xaml.cs index 2fb9bfd4..732abef6 100644 --- a/TwitchDownloaderWPF/PageChatUpdate.xaml.cs +++ b/TwitchDownloaderWPF/PageChatUpdate.xaml.cs @@ -28,7 +28,6 @@ namespace TwitchDownloaderWPF /// public partial class PageChatUpdate : Page { - public string InputFile; public ChatRoot ChatJsonInfo; public string VideoId; diff --git a/TwitchDownloaderWPF/Services/FileCollisionService.cs b/TwitchDownloaderWPF/Services/FileCollisionService.cs index f74924b3..0d26d54b 100644 --- a/TwitchDownloaderWPF/Services/FileCollisionService.cs +++ b/TwitchDownloaderWPF/Services/FileCollisionService.cs @@ -47,7 +47,7 @@ private static CollisionCommand ShowDialog(FileInfo fileInfo, Window owner, out dialog.EnableHyperlinks = true; dialog.HyperlinkClicked += Hyperlink_OnClicked; - + dialog.ButtonStyle = TaskDialogButtonStyle.CommandLinks; var overwriteButton = new TaskDialogButton(Translations.Strings.FileAlreadyExistsOverwrite);