Skip to content

Commit 618dd48

Browse files
committed
Fixed compiler warnings
1 parent 35f0b3a commit 618dd48

14 files changed

Lines changed: 0 additions & 66 deletions

File tree

src/Plugins/SmartStore.DiscountRules/Controllers/DiscountRulesController.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,8 @@ public DiscountRulesController(
3131
this._customerService = customerService;
3232
this._countryService = countryService;
3333
this._storeService = storeService;
34-
35-
T = NullLocalizer.Instance;
3634
}
3735

38-
public Localizer T { get; set; }
39-
40-
4136
#region Global
4237

4338
[NonAction]

src/Plugins/SmartStore.GoogleMerchantCenter/Controllers/FeedFroogleController.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,8 @@ public FeedFroogleController(
3030
_googleService = googleService;
3131
_settingService = settingService;
3232
_permissionService = permissionService;
33-
34-
T = NullLocalizer.Instance;
3533
}
3634

37-
public Localizer T { get; set; }
38-
3935
private ActionResult RedirectToConfig()
4036
{
4137
return RedirectToAction("ConfigurePlugin", "Plugin", new { systemName = _googleService.Helper.SystemName, area = "Admin" });

src/Plugins/SmartStore.OfflinePayment/Controllers/OfflinePaymentController.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,8 @@ public OfflinePaymentController(
3333
this._services = services;
3434
this._storeService = storeService;
3535
this._ctx = ctx;
36-
37-
T = NullLocalizer.Instance;
3836
}
3937

40-
public Localizer T { get; set; }
41-
4238
#region Global
4339

4440
[NonAction]

src/Plugins/SmartStore.PayPal/Controllers/PayPalExpressController.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@ public PayPalExpressController(
7878
_storeService = storeService;
7979

8080
_helper = new PluginHelper(ctx, "SmartStore.PayPal", "Plugins.Payments.PayPalExpress");
81-
82-
T = NullLocalizer.Instance;
83-
}
84-
85-
public Localizer T
86-
{
87-
get;
88-
set;
8981
}
9082

9183
public SelectList TransactModeValues(TransactMode selected)

src/Presentation/SmartStore.Web/Administration/Controllers/PackagingController.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ public PackagingController(ICommonServices services, IPackageManager packageMana
3030
this._themeRegistry = themeRegistry;
3131
}
3232

33-
public Localizer T { get; set; }
34-
3533
[ChildActionOnly]
3634
public ActionResult UploadPackage(bool isTheme)
3735
{

src/Presentation/SmartStore.Web/Administration/Controllers/PluginController.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,12 @@ public PluginController(IPluginFinder pluginFinder,
7171
this._providerManager = providerManager;
7272
this._pluginMediator = pluginMediator;
7373
this._commonService = commonService;
74-
75-
T = NullLocalizer.Instance;
7674
}
7775

7876
#endregion 
7977

8078
#region Utilities
8179

82-
public Localizer T { get; set; }
83-
8480
[NonAction]
8581
protected PluginModel PreparePluginModel(PluginDescriptor pluginDescriptor, bool forList = true)
8682
{

src/Presentation/SmartStore.Web/Administration/Controllers/ProductController.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,10 @@ public ProductController(
193193
this._genericAttributeService = genericAttributeService;
194194
_pdfConverter = pdfConverter;
195195
_services = services;
196-
197-
T = NullLocalizer.Instance;
198196
}
199197

200198
#endregion
201199

202-
public Localizer T { get; set; }
203-
204200
#region Update[...]
205201

206202
[NonAction]

src/Presentation/SmartStore.Web/Administration/Controllers/ScheduleTaskController.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,10 @@ public ScheduleTaskController(IScheduleTaskService scheduleTaskService, IPermiss
4242
this._scheduleTaskService = scheduleTaskService;
4343
this._permissionService = permissionService;
4444
this._dateTimeHelper = dateTimeHelper;
45-
T = NullLocalizer.Instance;
4645
}
4746

4847
#endregion
4948

50-
public Localizer T { get; set; }
51-
5249
#region Utility
5350

5451
private bool IsTaskInstalled(ScheduleTask task)

src/Presentation/SmartStore.Web/Administration/Controllers/ThemeController.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,8 @@ public ThemeController(
6262
this._services = services;
6363
this._themeContext = themeContext;
6464
this._themeFileResolver = themeFileResolver;
65-
66-
this.T = NullLocalizer.Instance;
6765
}
6866

69-
public Localizer T { get; set; }
70-
7167
#endregion 
7268

7369
#region Methods

src/Presentation/SmartStore.Web/Controllers/CatalogController.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,10 @@ public CatalogController(
105105
this._catalogSettings = catalogSettings;
106106

107107
this._helper = helper;
108-
109-
T = NullLocalizer.Instance;
110108
}
111109

112110
#endregion
113111

114-
#region Properties
115-
116-
public Localizer T
117-
{
118-
get;
119-
set;
120-
}
121-
122-
#endregion
123-
124112
#region Categories
125113

126114
[RequireHttpsByConfigAttribute(SslRequirement.No)]

0 commit comments

Comments
 (0)