Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Remove unused method
KrzysztofPajak2305a1e110ae
diff --git a/src/Core/Grand.Domain/Customers/CustomerExtensions.cs b/src/Core/Grand.Domain/Customers/CustomerExtensions.csindex 8efe46403..e220ece42 100644--- a/src/Core/Grand.Domain/Customers/CustomerExtensions.cs+++ b/src/Core/Grand.Domain/Customers/CustomerExtensions.cs@@ -1,5 +1,4 @@using Grand.Domain.Common;-using Grand.SharedKernel.Extensions;using System;using System.Collections.Generic;using System.Linq;@@ -22,23 +21,7 @@ namespace Grand.Domain.Customersreturn customer.IsSystemAccount;}- /// <summary>- /// Gets a value indicating whether customer a anonymous- /// </summary>- /// <param name="customer">Customer</param>- /// <returns>Result</returns>- public static bool IsAnonymousAccount(this Customer customer)- {- if (customer == null)- throw new ArgumentNullException(nameof(customer));-- if (!customer.IsSystemAccount || string.IsNullOrEmpty(customer.SystemName))- return false;-- var result = customer.SystemName.Equals(SystemCustomerNames.Anonymous, StringComparison.OrdinalIgnoreCase);- return result;- }-+/// <summary>/// Gets a value indicating whether customer a search engine/// </summary>@@ -56,23 +39,6 @@ namespace Grand.Domain.Customersreturn result;}- /// <summary>- /// Gets a value indicating whether the customer is a built-in for background tasks- /// </summary>- /// <param name="customer">Customer</param>- /// <returns>Result</returns>- public static bool IsBackgroundTaskAccount(this Customer customer)- {- if (customer == null)- throw new ArgumentNullException(nameof(customer));-- if (!customer.IsSystemAccount || String.IsNullOrEmpty(customer.SystemName))- return false;-- var result = customer.SystemName.Equals(SystemCustomerNames.BackgroundTask, StringComparison.OrdinalIgnoreCase);- return result;- }-#endregion#region Addresses