Remove obsolete code.

This commit is contained in:
Burak Kaan Köse
2024-08-23 02:07:32 +02:00
parent fd3a977009
commit 36eec9d061

View File

@@ -7,8 +7,6 @@ using MimeKit;
using MimeKit.IO;
using MimeKit.IO.Filters;
using MimeKit.Utils;
using Wino.Core.Domain;
using Wino.Core.Domain.Entities;
namespace Wino.Core.Extensions
{
@@ -41,16 +39,6 @@ namespace Wino.Core.Extensions
}
}
public static AccountContact ToAddressInformation(this MailboxAddress address)
{
if (address == null)
return new AccountContact() { Name = Translator.UnknownSender, Address = Translator.UnknownAddress };
if (string.IsNullOrEmpty(address.Name))
address.Name = address.Address;
return new AccountContact() { Name = address.Name, Address = address.Address };
}
/// <summary>
/// Sets html body replacing base64 images with cid linked resources.