Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #1138

Merged
merged 3 commits into from
Jul 7, 2024
Merged

Cleanup #1138

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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;
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
Loading