Skip to content

Commit

Permalink
Cleanup (#1138)
Browse files Browse the repository at this point in the history
* Remove extra whitespace/newlines

* Update editorconfig

* Cleanup unused property
  • Loading branch information
ScrubN authored Jul 7, 2024
1 parent ccd51a0 commit 50080e8
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion TwitchDownloaderCore.Tests/ToolTests/M3U8Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ public void ThrowsFormatExceptionForBadResolutionString(string byteRangeString)
Assert.Throws<FormatException>(() => M3U8.Stream.ExtStreamInfo.StreamResolution.Parse(byteRangeString));
}


[Theory]
[InlineData("en-GB")]
[InlineData("tr-TR")]
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderCore/ChatRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,6 @@ private static bool IsRightToLeft(ReadOnlySpan<char> message)
return chatRoot;
}


#region ImplementIDisposable

public void Dispose()
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderCore/Options/ChatRenderOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,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;
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderCore/Tools/DownloadTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public static async Task<long> DownloadFileAsync(HttpClient httpClient, Uri url,
return response.Content.Headers.ContentLength ?? -1;
}


/// <summary>
/// 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
/// </summary>
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderCore/TwitchObjects/Api/FFZEmote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace TwitchDownloaderCore.TwitchObjects.Api
{

public class FFZEmote
{
public int id { get; set; }
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderCore/TwitchObjects/StvEmoteFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions TwitchDownloaderWPF/PageChatDownload.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public enum DownloadType { Clip, Video }
/// </summary>
public partial class PageChatDownload : Page
{

public DownloadType downloadType;
public string downloadId;
public int streamerId;
Expand Down Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion TwitchDownloaderWPF/PageChatUpdate.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ namespace TwitchDownloaderWPF
/// </summary>
public partial class PageChatUpdate : Page
{

public string InputFile;
public ChatRoot ChatJsonInfo;
public string VideoId;
Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/Services/FileCollisionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 50080e8

Please sign in to comment.