Skip to content

Commit

Permalink
Enabled implicit usings
Browse files Browse the repository at this point in the history
  • Loading branch information
tidyui committed Apr 25, 2022
1 parent d5e063e commit 6765a8c
Show file tree
Hide file tree
Showing 414 changed files with 8 additions and 932 deletions.
1 change: 1 addition & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project>
<PropertyGroup>
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*
*/

using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Piranha;
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AspNetCore.Hosting/Http/HttpCacheInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;

namespace Piranha.AspNetCore.Http
{
/// <summary>
Expand Down
1 change: 0 additions & 1 deletion core/Piranha.AspNetCore.Hosting/Http/HttpCaching.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*
*/

using System;
using Microsoft.AspNetCore.Http;

namespace Piranha.AspNetCore.Http
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AspNetCore.Hosting/PiranhaApplicationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using System;
using Piranha.Manager.LocalAuth;

public static class SimpleSecurityExtensions
Expand Down
4 changes: 0 additions & 4 deletions core/Piranha.AspNetCore.SimpleSecurity/SimpleSecurity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
*
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
using Piranha.Manager.LocalAuth;
Expand Down
3 changes: 0 additions & 3 deletions core/Piranha.AspNetCore.SimpleSecurity/SimpleUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
*
*/

using System;
using System.Collections.Generic;

namespace Piranha.AspNetCore
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
*
*/

using System;
using System.Collections.Generic;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*
*/

using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Piranha;
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AspNetCore/Helpers/ISiteHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;
using System.Threading.Tasks;
using Piranha.AspNetCore.Models;
using Piranha.Models;

Expand Down
1 change: 0 additions & 1 deletion core/Piranha.AspNetCore/Helpers/MediaHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*
*/

using System;
using Piranha.Extend.Fields;
using Piranha.Extend.Blocks;
using Piranha.Models;
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AspNetCore/Helpers/SiteHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;
using System.Threading.Tasks;
using Piranha.AspNetCore.Models;
using Piranha.Models;

Expand Down
1 change: 0 additions & 1 deletion core/Piranha.AspNetCore/Hosting/PiranhaStartupFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*
*/

using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Piranha.AspNetCore.Http;
Expand Down
1 change: 0 additions & 1 deletion core/Piranha.AspNetCore/Http/MiddlewareBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using System.Threading.Tasks;
using Piranha.AspNetCore.Services;

namespace Piranha.AspNetCore.Http
Expand Down
3 changes: 0 additions & 3 deletions core/Piranha.AspNetCore/Http/RoutingMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@
*
*/

using System;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
Expand Down
1 change: 0 additions & 1 deletion core/Piranha.AspNetCore/Http/SecurityMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*
*/

using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Options;
using Piranha.AspNetCore.Security;
Expand Down
3 changes: 0 additions & 3 deletions core/Piranha.AspNetCore/Http/SitemapMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
*
*/

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AspNetCore/Models/ArchivePage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Piranha.AspNetCore.Services;
using Piranha.Models;
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AspNetCore/Models/SinglePage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Piranha.AspNetCore.Services;
using Piranha.Models;
Expand Down
3 changes: 0 additions & 3 deletions core/Piranha.AspNetCore/Models/SinglePageWithComments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
*
*/

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Piranha.AspNetCore.Services;
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AspNetCore/Models/SinglePost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Piranha.AspNetCore.Services;
using Piranha.Models;
Expand Down
3 changes: 0 additions & 3 deletions core/Piranha.AspNetCore/Models/SinglePostWithComments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
*
*/

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Piranha.AspNetCore.Services;
Expand Down
5 changes: 1 addition & 4 deletions core/Piranha.AspNetCore/Services/ApplicationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@
*
*/

using Microsoft.AspNetCore.Http;
using System;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Piranha.AspNetCore.Helpers;
using Piranha.Models;

Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AspNetCore/Services/IApplicationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Piranha.AspNetCore.Helpers;
using Piranha.Models;
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AspNetCore/Services/IModelLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
*
*/

using System;
using System.Security.Claims;
using System.Threading.Tasks;
using Piranha.Models;

namespace Piranha.AspNetCore.Services
Expand Down
3 changes: 0 additions & 3 deletions core/Piranha.AspNetCore/Services/ModelLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
*
*/

using System;
using System.Security.Claims;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Piranha.Models;

Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AttributeBuilder/ContentTypeAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;

namespace Piranha.AttributeBuilder
{
/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AttributeBuilder/ContentTypeBaseAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;

namespace Piranha.AttributeBuilder
{
/// <summary>
Expand Down
8 changes: 2 additions & 6 deletions core/Piranha.AttributeBuilder/ContentTypeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@
*
*/

using Piranha.Extend;
using Piranha.Models;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Threading.Tasks;
using Piranha.Extend;
using Piranha.Models;

namespace Piranha.AttributeBuilder
{
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AttributeBuilder/ContentTypeEditorAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;

namespace Piranha.AttributeBuilder
{
/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AttributeBuilder/ContentTypeRouteAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;

namespace Piranha.AttributeBuilder
{
/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AttributeBuilder/PageTypeArchiveItemAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;

namespace Piranha.AttributeBuilder
{
/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AttributeBuilder/PageTypeAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;

namespace Piranha.AttributeBuilder
{
/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AttributeBuilder/PostTypeAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;

namespace Piranha.AttributeBuilder
{
/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.AttributeBuilder/SiteTypeAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*
*/

using System;

namespace Piranha.AttributeBuilder
{
/// <summary>
Expand Down
3 changes: 0 additions & 3 deletions core/Piranha.Azure.BlobStorage/BlobStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
*
*/

using System;
using System.IO;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*
*/

using System;
using Azure.Core;
using Microsoft.Extensions.DependencyInjection;
using Piranha;
Expand Down
3 changes: 0 additions & 3 deletions core/Piranha.Azure.Search/Content.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@
*
*/

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.Azure.Search;
using Microsoft.Azure.Search.Models;
using Microsoft.Spatial;
using Piranha.Models;

namespace Piranha.Azure.Search
{
Expand Down
3 changes: 0 additions & 3 deletions core/Piranha.Azure.Search/Services/AzureSearchService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@
*
*/

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Microsoft.Azure.Search;
using Microsoft.Azure.Search.Models;
using Piranha.Extend;
Expand Down
2 changes: 0 additions & 2 deletions core/Piranha.ImageSharp/ImageSharpProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Processing;
using System;
using System.IO;

namespace Piranha.ImageSharp
{
Expand Down
Loading

0 comments on commit 6765a8c

Please sign in to comment.