From b133228ed60dd011ca4e3c02183483ab43600537 Mon Sep 17 00:00:00 2001 From: uwaa Date: Fri, 13 Dec 2024 12:25:20 +0000 Subject: [PATCH] pleroma: more implicit usings --- Pleroma/API/PublishStatus.cs | 5 +---- Pleroma/EnumLowerCaseConverter.cs | 5 +---- Pleroma/Models/Account.cs | 4 +--- Pleroma/Models/Context.cs | 4 +--- Pleroma/Models/Hashtag.cs | 4 +--- Pleroma/Models/PleromaException.cs | 4 +--- Pleroma/Models/PleromaObject.cs | 4 +--- Pleroma/Models/SearchResults.cs | 4 +--- Pleroma/Models/Status.cs | 4 +--- Pleroma/Pleroma.cs | 4 +--- Pleroma/Pleroma.csproj | 3 +++ Pleroma/StatusVisibility.cs | 4 +--- 12 files changed, 14 insertions(+), 35 deletions(-) diff --git a/Pleroma/API/PublishStatus.cs b/Pleroma/API/PublishStatus.cs index 3df81e9..18926c7 100644 --- a/Pleroma/API/PublishStatus.cs +++ b/Pleroma/API/PublishStatus.cs @@ -1,7 +1,4 @@ -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Uwaa.Pleroma.API; +namespace Uwaa.Pleroma.API; [JsonConverter(typeof(PublishStatusConverter))] public class PublishStatus diff --git a/Pleroma/EnumLowerCaseConverter.cs b/Pleroma/EnumLowerCaseConverter.cs index 038dfa7..f383e3c 100644 --- a/Pleroma/EnumLowerCaseConverter.cs +++ b/Pleroma/EnumLowerCaseConverter.cs @@ -1,7 +1,4 @@ -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Uwaa.Pleroma; +namespace Uwaa.Pleroma; /// /// Converts to and from enum values in lowercase. diff --git a/Pleroma/Models/Account.cs b/Pleroma/Models/Account.cs index e8e86c3..dfa8384 100644 --- a/Pleroma/Models/Account.cs +++ b/Pleroma/Models/Account.cs @@ -1,6 +1,4 @@ -using System.Text.Json.Serialization; - -namespace Uwaa.Pleroma; +namespace Uwaa.Pleroma; public class Account { diff --git a/Pleroma/Models/Context.cs b/Pleroma/Models/Context.cs index 6d68f57..24dec97 100644 --- a/Pleroma/Models/Context.cs +++ b/Pleroma/Models/Context.cs @@ -1,6 +1,4 @@ -using System.Text.Json.Serialization; - -namespace Uwaa.Pleroma; +namespace Uwaa.Pleroma; public class Context { diff --git a/Pleroma/Models/Hashtag.cs b/Pleroma/Models/Hashtag.cs index d27c885..b474ce1 100644 --- a/Pleroma/Models/Hashtag.cs +++ b/Pleroma/Models/Hashtag.cs @@ -1,6 +1,4 @@ -using System.Text.Json.Serialization; - -namespace Uwaa.Pleroma; +namespace Uwaa.Pleroma; public class Hashtag { diff --git a/Pleroma/Models/PleromaException.cs b/Pleroma/Models/PleromaException.cs index c92c71d..3c13a69 100644 --- a/Pleroma/Models/PleromaException.cs +++ b/Pleroma/Models/PleromaException.cs @@ -1,6 +1,4 @@ -using System.Text.Json.Serialization; - -namespace Uwaa.Pleroma; +namespace Uwaa.Pleroma; public class PleromaException : Exception { diff --git a/Pleroma/Models/PleromaObject.cs b/Pleroma/Models/PleromaObject.cs index f8d51b0..afdffe3 100644 --- a/Pleroma/Models/PleromaObject.cs +++ b/Pleroma/Models/PleromaObject.cs @@ -1,6 +1,4 @@ -using System.Text.Json.Serialization; - -namespace Uwaa.Pleroma; +namespace Uwaa.Pleroma; public class PleromaObject { diff --git a/Pleroma/Models/SearchResults.cs b/Pleroma/Models/SearchResults.cs index e560572..7f175bd 100644 --- a/Pleroma/Models/SearchResults.cs +++ b/Pleroma/Models/SearchResults.cs @@ -1,6 +1,4 @@ -using System.Text.Json.Serialization; - -namespace Uwaa.Pleroma; +namespace Uwaa.Pleroma; public class SearchResults { diff --git a/Pleroma/Models/Status.cs b/Pleroma/Models/Status.cs index a243972..5bbe3a0 100644 --- a/Pleroma/Models/Status.cs +++ b/Pleroma/Models/Status.cs @@ -1,6 +1,4 @@ -using System.Text.Json.Serialization; - -namespace Uwaa.Pleroma; +namespace Uwaa.Pleroma; public class Status { diff --git a/Pleroma/Pleroma.cs b/Pleroma/Pleroma.cs index e1d7dcd..081a7dd 100644 --- a/Pleroma/Pleroma.cs +++ b/Pleroma/Pleroma.cs @@ -1,6 +1,4 @@ -using System.Text.Json; -using System.Threading.Tasks; -using Uwaa.HTTP; +using Uwaa.HTTP; using Uwaa.Pleroma.API; namespace Uwaa.Pleroma; diff --git a/Pleroma/Pleroma.csproj b/Pleroma/Pleroma.csproj index 1dff3c0..a7c45d8 100644 --- a/Pleroma/Pleroma.csproj +++ b/Pleroma/Pleroma.csproj @@ -16,5 +16,8 @@ + + + diff --git a/Pleroma/StatusVisibility.cs b/Pleroma/StatusVisibility.cs index 00acd77..2b8055a 100644 --- a/Pleroma/StatusVisibility.cs +++ b/Pleroma/StatusVisibility.cs @@ -1,6 +1,4 @@ -using System.Text.Json.Serialization; - -namespace Uwaa.Pleroma; +namespace Uwaa.Pleroma; [JsonConverter(typeof(EnumLowerCaseConverter))] public enum StatusVisibility