Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofPajak committed Mar 19, 2020
1 parent ca57f73 commit fd44893
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Grand.Services/Cms/WidgetService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Grand.Core.Caching;
using Grand.Core.Domain.Cms;
using Grand.Core.Plugins;
using System;
Expand Down Expand Up @@ -26,7 +25,7 @@ public partial class WidgetService : IWidgetService
/// </summary>
/// <param name="pluginFinder">Plugin finder</param>
/// <param name="widgetSettings">Widget settings</param>
public WidgetService(IPluginFinder pluginFinder, ICacheManager cacheManager,
public WidgetService(IPluginFinder pluginFinder,
WidgetSettings widgetSettings)
{
_pluginFinder = pluginFinder;
Expand Down Expand Up @@ -55,7 +54,7 @@ public virtual IList<IWidgetPlugin> LoadActiveWidgets(string storeId = "")
/// <param name="widgetZone">Widget zone</param>
/// <param name="storeId">Load records allowed only in a specified store; pass "" to load all records</param>
/// <returns>Widgets</returns>
public virtual IList<IWidgetPlugin> LoadActiveWidgetsByWidgetZone(string widgetZone, string storeId = "")
public virtual IList<IWidgetPlugin> LoadActiveWidgetsByWidgetZone(string widgetZone, string storeId = "")
{
if (String.IsNullOrWhiteSpace(widgetZone))
return new List<IWidgetPlugin>();
Expand Down Expand Up @@ -86,9 +85,9 @@ public virtual IWidgetPlugin LoadWidgetBySystemName(string systemName)
/// <returns>Widgets</returns>
public virtual IList<IWidgetPlugin> LoadAllWidgets(string storeId = "")
{
return _pluginFinder.GetPlugins<IWidgetPlugin>(storeId: storeId).ToList();
return _pluginFinder.GetPlugins<IWidgetPlugin>(storeId: storeId).ToList();
}

#endregion
}
}

0 comments on commit fd44893

Please sign in to comment.