From 0f4d80ec764a996746814365bb8126677308095a Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Thu, 5 Jan 2023 11:05:38 +0100 Subject: [PATCH] Clean usings --- .../Controllers/Api/PeopleController.cs | 7 +------ Umbraco.Docs.Samples.Web/Controllers/DefaultController.cs | 1 - Umbraco.Docs.Samples.Web/Controllers/PersonController.cs | 5 +---- .../Controllers/UmbAlternativeRegisterController.cs | 3 --- .../CustomIndexing/ExamineComposer.cs | 2 -- Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndex.cs | 2 -- .../CustomIndexing/ProductIndexPopulator.cs | 5 +---- .../CustomIndexing/ProductIndexValueSetBuilder.cs | 3 +-- .../Dashboards/MyDashboardComposer.cs | 1 - Umbraco.Docs.Samples.Web/Dashboards/RemoveDashboard.cs | 1 - .../Notifications/CulturePublishedCheck.cs | 3 +-- .../Notifications/CulturePublishingCheck.cs | 3 +-- .../Notifications/CultureSavedCheck.cs | 3 +-- .../Notifications/CultureSavingCheck.cs | 3 +-- .../EditorSendingContentNotificationHandler.cs | 5 +---- .../EditorSendingMemberNotificationHandler.cs | 4 +--- .../SendingAllowedChildrenNotificationHandler.cs | 3 +-- .../CreateImageCropperValuesController.cs | 5 +---- .../RecurringHostedService/CleanUpYourRoom.cs | 5 +---- .../UmbracoBuilderHostedServiceExtensions.cs | 4 +--- Umbraco.Docs.Samples.Web/Services/SearchService.cs | 5 +---- .../Trees/FavouriteThingsSearchableTree.cs | 6 +----- .../Trees/FavouriteThingsTreeController.cs | 6 +----- .../Trees/UmbracoBuilderSearchableTreeExtensions.cs | 3 +-- .../Tutorials/ConfigureStaticFileOptions.cs | 8 +------- .../Tutorials/UmbracoBuilderNotificationExtensions.cs | 4 +--- 26 files changed, 20 insertions(+), 80 deletions(-) diff --git a/Umbraco.Docs.Samples.Web/Controllers/Api/PeopleController.cs b/Umbraco.Docs.Samples.Web/Controllers/Api/PeopleController.cs index 7b9d770..2e72e58 100644 --- a/Umbraco.Docs.Samples.Web/Controllers/Api/PeopleController.cs +++ b/Umbraco.Docs.Samples.Web/Controllers/Api/PeopleController.cs @@ -1,13 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; +using System.Diagnostics; using Microsoft.AspNetCore.Mvc; using Umbraco.Cms.Core.Web; -using Umbraco.Cms.Web.Common; using Umbraco.Cms.Web.Common.Controllers; using Umbraco.Cms.Web.Common.PublishedModels; -using Umbraco.Extensions; namespace Umbraco.Docs.Samples.Web.Controllers.Api; diff --git a/Umbraco.Docs.Samples.Web/Controllers/DefaultController.cs b/Umbraco.Docs.Samples.Web/Controllers/DefaultController.cs index 0dab4b0..cad0ce9 100644 --- a/Umbraco.Docs.Samples.Web/Controllers/DefaultController.cs +++ b/Umbraco.Docs.Samples.Web/Controllers/DefaultController.cs @@ -1,6 +1,5 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ViewEngines; -using Microsoft.Extensions.Logging; using Umbraco.Cms.Core.Models; using Umbraco.Cms.Core.Web; using Umbraco.Cms.Web.Common.Controllers; diff --git a/Umbraco.Docs.Samples.Web/Controllers/PersonController.cs b/Umbraco.Docs.Samples.Web/Controllers/PersonController.cs index 5e7947d..e822404 100644 --- a/Umbraco.Docs.Samples.Web/Controllers/PersonController.cs +++ b/Umbraco.Docs.Samples.Web/Controllers/PersonController.cs @@ -1,8 +1,5 @@ -using System.Net.Http; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ViewEngines; -using Microsoft.Extensions.Logging; using Newtonsoft.Json.Linq; using Umbraco.Cms.Core.Models; using Umbraco.Cms.Core.Models.PublishedContent; diff --git a/Umbraco.Docs.Samples.Web/Controllers/UmbAlternativeRegisterController.cs b/Umbraco.Docs.Samples.Web/Controllers/UmbAlternativeRegisterController.cs index 4951fe5..5bb5854 100644 --- a/Umbraco.Docs.Samples.Web/Controllers/UmbAlternativeRegisterController.cs +++ b/Umbraco.Docs.Samples.Web/Controllers/UmbAlternativeRegisterController.cs @@ -1,6 +1,3 @@ -using System; -using System.Linq; -using System.Threading.Tasks; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; using Umbraco.Cms.Core.Cache; diff --git a/Umbraco.Docs.Samples.Web/CustomIndexing/ExamineComposer.cs b/Umbraco.Docs.Samples.Web/CustomIndexing/ExamineComposer.cs index 47e059e..2638a8a 100644 --- a/Umbraco.Docs.Samples.Web/CustomIndexing/ExamineComposer.cs +++ b/Umbraco.Docs.Samples.Web/CustomIndexing/ExamineComposer.cs @@ -1,7 +1,5 @@ using Examine; -using Microsoft.Extensions.DependencyInjection; using Umbraco.Cms.Core.Composing; -using Umbraco.Cms.Core.DependencyInjection; using Umbraco.Cms.Infrastructure.Examine; namespace Umbraco.Docs.Samples.Web.CustomIndexing diff --git a/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndex.cs b/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndex.cs index c2e72fc..f25831c 100644 --- a/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndex.cs +++ b/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndex.cs @@ -1,7 +1,5 @@ using Examine.Lucene; -using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Umbraco.Cms.Core.Hosting; using Umbraco.Cms.Core.Services; using Umbraco.Cms.Infrastructure.Examine; diff --git a/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndexPopulator.cs b/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndexPopulator.cs index 5c8a916..3f0e295 100644 --- a/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndexPopulator.cs +++ b/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndexPopulator.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Examine; +using Examine; using Umbraco.Cms.Core.Services; using Umbraco.Cms.Infrastructure.Examine; diff --git a/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndexValueSetBuilder.cs b/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndexValueSetBuilder.cs index b04168b..8ef01ef 100644 --- a/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndexValueSetBuilder.cs +++ b/Umbraco.Docs.Samples.Web/CustomIndexing/ProductIndexValueSetBuilder.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using Examine; +using Examine; using Umbraco.Cms.Core.Models; using Umbraco.Cms.Infrastructure.Examine; diff --git a/Umbraco.Docs.Samples.Web/Dashboards/MyDashboardComposer.cs b/Umbraco.Docs.Samples.Web/Dashboards/MyDashboardComposer.cs index 5d14d97..9c4295e 100644 --- a/Umbraco.Docs.Samples.Web/Dashboards/MyDashboardComposer.cs +++ b/Umbraco.Docs.Samples.Web/Dashboards/MyDashboardComposer.cs @@ -1,6 +1,5 @@ using Umbraco.Cms.Core.Composing; using Umbraco.Cms.Core.Dashboards; -using Umbraco.Cms.Core.DependencyInjection; namespace Umbraco.Docs.Samples.Web.Dashboards { diff --git a/Umbraco.Docs.Samples.Web/Dashboards/RemoveDashboard.cs b/Umbraco.Docs.Samples.Web/Dashboards/RemoveDashboard.cs index 254423f..2e06260 100644 --- a/Umbraco.Docs.Samples.Web/Dashboards/RemoveDashboard.cs +++ b/Umbraco.Docs.Samples.Web/Dashboards/RemoveDashboard.cs @@ -1,6 +1,5 @@ using Umbraco.Cms.Core.Composing; using Umbraco.Cms.Core.Dashboards; -using Umbraco.Cms.Core.DependencyInjection; namespace Umbraco.Docs.Samples.Web.Dashboards { diff --git a/Umbraco.Docs.Samples.Web/Notifications/CulturePublishedCheck.cs b/Umbraco.Docs.Samples.Web/Notifications/CulturePublishedCheck.cs index 9d237f7..828c41f 100644 --- a/Umbraco.Docs.Samples.Web/Notifications/CulturePublishedCheck.cs +++ b/Umbraco.Docs.Samples.Web/Notifications/CulturePublishedCheck.cs @@ -1,5 +1,4 @@ -using System.Linq; -using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Events; using Umbraco.Cms.Core.Notifications; namespace Umbraco.Docs.Samples.Web.Notifications diff --git a/Umbraco.Docs.Samples.Web/Notifications/CulturePublishingCheck.cs b/Umbraco.Docs.Samples.Web/Notifications/CulturePublishingCheck.cs index 08a470a..7fc9a4d 100644 --- a/Umbraco.Docs.Samples.Web/Notifications/CulturePublishingCheck.cs +++ b/Umbraco.Docs.Samples.Web/Notifications/CulturePublishingCheck.cs @@ -1,5 +1,4 @@ -using System.Linq; -using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Events; using Umbraco.Cms.Core.Notifications; namespace Umbraco.Docs.Samples.Web.Notifications diff --git a/Umbraco.Docs.Samples.Web/Notifications/CultureSavedCheck.cs b/Umbraco.Docs.Samples.Web/Notifications/CultureSavedCheck.cs index bd2971f..3b819bd 100644 --- a/Umbraco.Docs.Samples.Web/Notifications/CultureSavedCheck.cs +++ b/Umbraco.Docs.Samples.Web/Notifications/CultureSavedCheck.cs @@ -1,5 +1,4 @@ -using System.Linq; -using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Events; using Umbraco.Cms.Core.Notifications; namespace Umbraco.Docs.Samples.Web.Notifications diff --git a/Umbraco.Docs.Samples.Web/Notifications/CultureSavingCheck.cs b/Umbraco.Docs.Samples.Web/Notifications/CultureSavingCheck.cs index 25fd102..f8525a9 100644 --- a/Umbraco.Docs.Samples.Web/Notifications/CultureSavingCheck.cs +++ b/Umbraco.Docs.Samples.Web/Notifications/CultureSavingCheck.cs @@ -1,5 +1,4 @@ -using System.Linq; -using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Events; using Umbraco.Cms.Core.Notifications; namespace Umbraco.Docs.Samples.Web.Notifications diff --git a/Umbraco.Docs.Samples.Web/Notifications/EditorSendingContentNotificationHandler.cs b/Umbraco.Docs.Samples.Web/Notifications/EditorSendingContentNotificationHandler.cs index cda9b79..c08f1f5 100644 --- a/Umbraco.Docs.Samples.Web/Notifications/EditorSendingContentNotificationHandler.cs +++ b/Umbraco.Docs.Samples.Web/Notifications/EditorSendingContentNotificationHandler.cs @@ -1,9 +1,6 @@ -using System; -using System.Linq; -using Umbraco.Cms.Core.Events; +using Umbraco.Cms.Core.Events; using Umbraco.Cms.Core.Models.ContentEditing; using Umbraco.Cms.Core.Notifications; -using Umbraco.Extensions; namespace Umbraco.Docs.Samples.Web.Notifications { diff --git a/Umbraco.Docs.Samples.Web/Notifications/EditorSendingMemberNotificationHandler.cs b/Umbraco.Docs.Samples.Web/Notifications/EditorSendingMemberNotificationHandler.cs index 84a51b0..212e760 100644 --- a/Umbraco.Docs.Samples.Web/Notifications/EditorSendingMemberNotificationHandler.cs +++ b/Umbraco.Docs.Samples.Web/Notifications/EditorSendingMemberNotificationHandler.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using Umbraco.Cms.Core; +using Umbraco.Cms.Core; using Umbraco.Cms.Core.Events; using Umbraco.Cms.Core.Notifications; using Umbraco.Cms.Core.Services; diff --git a/Umbraco.Docs.Samples.Web/Notifications/SendingAllowedChildrenNotificationHandler.cs b/Umbraco.Docs.Samples.Web/Notifications/SendingAllowedChildrenNotificationHandler.cs index af3873a..676106f 100644 --- a/Umbraco.Docs.Samples.Web/Notifications/SendingAllowedChildrenNotificationHandler.cs +++ b/Umbraco.Docs.Samples.Web/Notifications/SendingAllowedChildrenNotificationHandler.cs @@ -1,5 +1,4 @@ -using System.Linq; -using System.Web; +using System.Web; using Umbraco.Cms.Core.Events; using Umbraco.Cms.Core.Notifications; using Umbraco.Cms.Web.Common.PublishedModels; diff --git a/Umbraco.Docs.Samples.Web/Property-Editors-Add-Values/CreateImageCropperValuesController.cs b/Umbraco.Docs.Samples.Web/Property-Editors-Add-Values/CreateImageCropperValuesController.cs index 21bfe7c..7341196 100644 --- a/Umbraco.Docs.Samples.Web/Property-Editors-Add-Values/CreateImageCropperValuesController.cs +++ b/Umbraco.Docs.Samples.Web/Property-Editors-Add-Values/CreateImageCropperValuesController.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using Umbraco.Cms.Core.Models.PublishedContent; using Umbraco.Cms.Core.PropertyEditors; @@ -9,7 +7,6 @@ using Umbraco.Cms.Core.Services; using Umbraco.Cms.Web.Common.Controllers; using Umbraco.Cms.Web.Common.PublishedModels; -using Umbraco.Extensions; namespace Umbraco.Docs.Samples.Web.Property_Editors_Add_Values { diff --git a/Umbraco.Docs.Samples.Web/RecurringHostedService/CleanUpYourRoom.cs b/Umbraco.Docs.Samples.Web/RecurringHostedService/CleanUpYourRoom.cs index 60e7760..63dc133 100644 --- a/Umbraco.Docs.Samples.Web/RecurringHostedService/CleanUpYourRoom.cs +++ b/Umbraco.Docs.Samples.Web/RecurringHostedService/CleanUpYourRoom.cs @@ -1,7 +1,4 @@ -using System; -using System.Threading.Tasks; -using Microsoft.Extensions.Logging; -using Umbraco.Cms.Core; +using Umbraco.Cms.Core; using Umbraco.Cms.Core.Logging; using Umbraco.Cms.Core.Services; using Umbraco.Cms.Core.Sync; diff --git a/Umbraco.Docs.Samples.Web/RecurringHostedService/UmbracoBuilderHostedServiceExtensions.cs b/Umbraco.Docs.Samples.Web/RecurringHostedService/UmbracoBuilderHostedServiceExtensions.cs index 1650206..5a51407 100644 --- a/Umbraco.Docs.Samples.Web/RecurringHostedService/UmbracoBuilderHostedServiceExtensions.cs +++ b/Umbraco.Docs.Samples.Web/RecurringHostedService/UmbracoBuilderHostedServiceExtensions.cs @@ -1,6 +1,4 @@ -using Microsoft.Extensions.DependencyInjection; -using Umbraco.Cms.Core.DependencyInjection; -using Umbraco.Docs.Samples.Web.Notifications; +using Umbraco.Docs.Samples.Web.Notifications; namespace Umbraco.Docs.Samples.Web.RecurringHostedService { diff --git a/Umbraco.Docs.Samples.Web/Services/SearchService.cs b/Umbraco.Docs.Samples.Web/Services/SearchService.cs index 37d1b6f..c82d93f 100644 --- a/Umbraco.Docs.Samples.Web/Services/SearchService.cs +++ b/Umbraco.Docs.Samples.Web/Services/SearchService.cs @@ -1,10 +1,7 @@ -using System; -using System.Collections.Generic; -using Examine; +using Examine; using Umbraco.Cms.Core; using Umbraco.Cms.Core.Models.PublishedContent; using Umbraco.Cms.Infrastructure.Examine; -using Umbraco.Extensions; namespace Umbraco.Docs.Samples.Web.Services { diff --git a/Umbraco.Docs.Samples.Web/Trees/FavouriteThingsSearchableTree.cs b/Umbraco.Docs.Samples.Web/Trees/FavouriteThingsSearchableTree.cs index 4620ab4..4e3bfed 100644 --- a/Umbraco.Docs.Samples.Web/Trees/FavouriteThingsSearchableTree.cs +++ b/Umbraco.Docs.Samples.Web/Trees/FavouriteThingsSearchableTree.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Umbraco.Cms.Core; +using Umbraco.Cms.Core; using Umbraco.Cms.Core.Models.ContentEditing; using Umbraco.Cms.Core.Trees; diff --git a/Umbraco.Docs.Samples.Web/Trees/FavouriteThingsTreeController.cs b/Umbraco.Docs.Samples.Web/Trees/FavouriteThingsTreeController.cs index 369da1c..744cb1c 100644 --- a/Umbraco.Docs.Samples.Web/Trees/FavouriteThingsTreeController.cs +++ b/Umbraco.Docs.Samples.Web/Trees/FavouriteThingsTreeController.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Http; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using Umbraco.Cms.Core; using Umbraco.Cms.Core.Actions; using Umbraco.Cms.Core.Events; @@ -9,7 +6,6 @@ using Umbraco.Cms.Core.Services; using Umbraco.Cms.Core.Trees; using Umbraco.Cms.Web.BackOffice.Trees; -using Umbraco.Extensions; // https://our.umbraco.com/Documentation/Extending/Section-Trees/trees diff --git a/Umbraco.Docs.Samples.Web/Trees/UmbracoBuilderSearchableTreeExtensions.cs b/Umbraco.Docs.Samples.Web/Trees/UmbracoBuilderSearchableTreeExtensions.cs index 210560b..e65711f 100644 --- a/Umbraco.Docs.Samples.Web/Trees/UmbracoBuilderSearchableTreeExtensions.cs +++ b/Umbraco.Docs.Samples.Web/Trees/UmbracoBuilderSearchableTreeExtensions.cs @@ -1,5 +1,4 @@ -using Umbraco.Cms.Core.DependencyInjection; -using Umbraco.Cms.Web.BackOffice.Trees; +using Umbraco.Cms.Web.BackOffice.Trees; // https://our.umbraco.com/Documentation/Extending/Section-Trees/Searchable-Trees/#example diff --git a/Umbraco.Docs.Samples.Web/Tutorials/ConfigureStaticFileOptions.cs b/Umbraco.Docs.Samples.Web/Tutorials/ConfigureStaticFileOptions.cs index 1d32329..30377ad 100644 --- a/Umbraco.Docs.Samples.Web/Tutorials/ConfigureStaticFileOptions.cs +++ b/Umbraco.Docs.Samples.Web/Tutorials/ConfigureStaticFileOptions.cs @@ -1,10 +1,4 @@ -using System.IO; -using System; -using System.Collections.Generic; - -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Options; +using Microsoft.Extensions.Options; using Microsoft.AspNetCore.Http.Headers; using Microsoft.Net.Http.Headers; diff --git a/Umbraco.Docs.Samples.Web/Tutorials/UmbracoBuilderNotificationExtensions.cs b/Umbraco.Docs.Samples.Web/Tutorials/UmbracoBuilderNotificationExtensions.cs index 0630c54..47d6c59 100644 --- a/Umbraco.Docs.Samples.Web/Tutorials/UmbracoBuilderNotificationExtensions.cs +++ b/Umbraco.Docs.Samples.Web/Tutorials/UmbracoBuilderNotificationExtensions.cs @@ -1,6 +1,4 @@ -using Microsoft.AspNetCore.Builder; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Options; +using Microsoft.Extensions.Options; namespace Umbraco.Docs.Samples.Web.Tutorials {