Skip to content

Commit

Permalink
Use ImplicitUsings (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScarletKuro authored Nov 15, 2024
1 parent 3cc27b0 commit aaa20db
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 37 deletions.
1 change: 1 addition & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<UsingBrowserRuntimeWorkload>false</UsingBrowserRuntimeWorkload>
</PropertyGroup>

Expand Down
4 changes: 0 additions & 4 deletions src/MudBlazor.Examples.Data/AmericanStates.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;

namespace MudBlazor.Examples.Data
{
public static class AmericanStates
Expand Down
2 changes: 0 additions & 2 deletions src/MudBlazor.Examples.Data/IPeriodicTableService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using MudBlazor.Examples.Data.Models;

namespace MudBlazor.Examples.Data
Expand Down
3 changes: 1 addition & 2 deletions src/MudBlazor.Examples.Data/Models/Element.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;

namespace MudBlazor.Examples.Data.Models
{
Expand Down
2 changes: 0 additions & 2 deletions src/MudBlazor.Examples.Data/Models/ElementGroup.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections.Generic;

namespace MudBlazor.Examples.Data.Models
{
public class ElementGroup
Expand Down
1 change: 0 additions & 1 deletion src/MudBlazor.Examples.Data/Models/Table.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace MudBlazor.Examples.Data.Models
Expand Down
6 changes: 1 addition & 5 deletions src/MudBlazor.Examples.Data/PeriodicTableService.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Reflection;
using System.Text.Json;
using System.Threading.Tasks;
using MudBlazor.Examples.Data.Models;

namespace MudBlazor.Examples.Data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using MudBlazor.Examples.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using MudBlazor.Examples.Data;
using MudBlazor.Examples.Data.Models;
Expand Down
6 changes: 1 addition & 5 deletions src/TryMudBlazor.Server/Controllers/SnippetsController.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using System;
using System.IO;
using System.Threading.Tasks;
using Azure.Identity;
using Azure.Identity;
using Azure.Storage;
using Azure.Storage.Blobs;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using static TryMudBlazor.Server.Utilities.SnippetsEncoder;

namespace TryMudBlazor.Server.Controllers;
Expand Down
3 changes: 0 additions & 3 deletions src/TryMudBlazor.Server/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace TryMudBlazor.Server;

public class Program
Expand Down
5 changes: 0 additions & 5 deletions src/TryMudBlazor.Server/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using MudBlazor.Examples.Data;

namespace TryMudBlazor.Server;
Expand Down
5 changes: 0 additions & 5 deletions src/TryMudBlazor.Server/Utilities/SnippetIdEncoder.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

namespace TryMudBlazor.Server.Utilities;

public static class SnippetsEncoder
Expand Down

0 comments on commit aaa20db

Please sign in to comment.