Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Dec 27, 2023
1 parent 604a989 commit 9369932
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 38 deletions.
36 changes: 1 addition & 35 deletions MailKit/Net/Imap/ImapEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ public async Task<string> ReadLiteralAsync (CancellationToken cancellationToken)
}
}

internal Task<string> ReadLiteralAsync (bool doAsync, CancellationToken cancellationToken)
Task<string> ReadLiteralAsync (bool doAsync, CancellationToken cancellationToken)
{
if (doAsync)
return ReadLiteralAsync (cancellationToken);
Expand Down Expand Up @@ -2716,24 +2716,6 @@ public async Task<ImapCommandResponse> RunAsync (ImapCommand ic)
return ic.Response;
}

/// <summary>
/// Wait for the specified command to finish.
/// </summary>
/// <param name="ic">The IMAP command.</param>
/// <param name="doAsync">Whether or not asynchronous IO methods should be used.</param>
/// <exception cref="System.ArgumentNullException">
/// <paramref name="ic"/> is <c>null</c>.
/// </exception>
public Task<ImapCommandResponse> RunAsync (ImapCommand ic, bool doAsync)
{
if (doAsync)
return RunAsync (ic);

var response = Run (ic);

return Task.FromResult (response);
}

public IEnumerable<ImapCommand> CreateCommands (CancellationToken cancellationToken, ImapFolder folder, string format, IList<UniqueId> uids, params object[] args)
{
var vargs = new List<object> ();
Expand Down Expand Up @@ -2994,22 +2976,6 @@ internal async Task LookupParentFoldersAsync (IEnumerable<ImapFolder> folders, C
}
}

/// <summary>
/// Looks up and sets the <see cref="MailFolder.ParentFolder"/> property of each of the folders.
/// </summary>
/// <param name="folders">The IMAP folders.</param>
/// <param name="doAsync">Whether or not asynchronous IO methods should be used.</param>
/// <param name="cancellationToken">The cancellation token.</param>
internal Task LookupParentFoldersAsync (IEnumerable<ImapFolder> folders, bool doAsync, CancellationToken cancellationToken)
{
if (doAsync)
return LookupParentFoldersAsync (folders, cancellationToken);

LookupParentFolders (folders, cancellationToken);

return Task.CompletedTask;
}

void ProcessNamespaceResponse (ImapCommand ic)
{
if (QuirksMode == ImapQuirksMode.Exchange && ic.Response == ImapCommandResponse.Bad) {
Expand Down
5 changes: 2 additions & 3 deletions MailKit/TextEncodings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
using System;
using System.Text;

namespace MailKit
{
internal class TextEncodings
namespace MailKit {
internal static class TextEncodings
{
public static readonly Encoding Latin1;
public static readonly Encoding UTF8;
Expand Down

0 comments on commit 9369932

Please sign in to comment.