diff --git a/MailKit/Net/Imap/ImapFolderFetch.cs b/MailKit/Net/Imap/ImapFolderFetch.cs index eecc51b919..7377b2d731 100644 --- a/MailKit/Net/Imap/ImapFolderFetch.cs +++ b/MailKit/Net/Imap/ImapFolderFetch.cs @@ -199,16 +199,6 @@ static async Task SkipParenthesizedListAsync (ImapEngine engine, CancellationTok } while (depth > 0); } - static Task SkipParenthesizedListAsync (ImapEngine engine, bool doAsync, CancellationToken cancellationToken) - { - if (doAsync) - return SkipParenthesizedListAsync (engine, cancellationToken); - - SkipParenthesizedList (engine, cancellationToken); - - return Task.CompletedTask; - } - static DateTimeOffset? ReadDateTimeOffsetToken (ImapEngine engine, string atom, CancellationToken cancellationToken) { var token = engine.ReadToken (cancellationToken); diff --git a/MailKit/Net/Imap/ImapUtils.cs b/MailKit/Net/Imap/ImapUtils.cs index f495ed5adf..2a0e6222d8 100644 --- a/MailKit/Net/Imap/ImapUtils.cs +++ b/MailKit/Net/Imap/ImapUtils.cs @@ -951,16 +951,6 @@ internal static async ValueTask ReadStringTokenAsync (ImapEngine engine, } } - internal static ValueTask ReadStringTokenAsync (ImapEngine engine, string format, bool doAsync, CancellationToken cancellationToken) - { - if (doAsync) - return ReadStringTokenAsync (engine, format, cancellationToken); - - var value = ReadStringToken (engine, format, cancellationToken); - - return new ValueTask (value); - } - internal static string ReadNStringToken (ImapEngine engine, string format, bool rfc2047, CancellationToken cancellationToken) { var token = engine.ReadToken (cancellationToken); @@ -1011,16 +1001,6 @@ internal static async ValueTask ReadNStringTokenAsync (ImapEngine engine return value; } - static ValueTask ReadNStringTokenAsync (ImapEngine engine, string format, bool rfc2047, bool doAsync, CancellationToken cancellationToken) - { - if (doAsync) - return ReadNStringTokenAsync (engine, format, rfc2047, cancellationToken); - - var value = ReadNStringToken (engine, format, rfc2047, cancellationToken); - - return new ValueTask (value); - } - static uint ParseNumberToken (ImapToken token, string format) { // Note: this is a work-around for broken IMAP servers that return negative integer values for things