Skip to content

Commit

Permalink
Remove some unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Dec 28, 2023
1 parent 1a191ad commit de29451
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
10 changes: 0 additions & 10 deletions MailKit/Net/Imap/ImapFolderFetch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
20 changes: 0 additions & 20 deletions MailKit/Net/Imap/ImapUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -951,16 +951,6 @@ internal static async ValueTask<string> ReadStringTokenAsync (ImapEngine engine,
}
}

internal static ValueTask<string> 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<string> (value);
}

internal static string ReadNStringToken (ImapEngine engine, string format, bool rfc2047, CancellationToken cancellationToken)
{
var token = engine.ReadToken (cancellationToken);
Expand Down Expand Up @@ -1011,16 +1001,6 @@ internal static async ValueTask<string> ReadNStringTokenAsync (ImapEngine engine
return value;
}

static ValueTask<string> 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<string> (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
Expand Down

0 comments on commit de29451

Please sign in to comment.