diff --git a/back/src/Kyoo.Abstractions/Controllers/IPlugin.cs b/back/src/Kyoo.Abstractions/Controllers/IPlugin.cs index 5c1e1442..3363a4ff 100644 --- a/back/src/Kyoo.Abstractions/Controllers/IPlugin.cs +++ b/back/src/Kyoo.Abstractions/Controllers/IPlugin.cs @@ -19,7 +19,6 @@ using System; using System.Collections.Generic; using Autofac; -using JetBrains.Annotations; using Microsoft.Extensions.DependencyInjection; namespace Kyoo.Abstractions.Controllers @@ -31,7 +30,6 @@ namespace Kyoo.Abstractions.Controllers /// You can inject services in the IPlugin constructor. /// You should only inject well known services like an ILogger, IConfiguration or IWebHostEnvironment. /// - [UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)] public interface IPlugin { /// diff --git a/back/src/Kyoo.Abstractions/Models/Utils/RequestError.cs b/back/src/Kyoo.Abstractions/Models/Utils/RequestError.cs index beca21d5..7c512237 100644 --- a/back/src/Kyoo.Abstractions/Models/Utils/RequestError.cs +++ b/back/src/Kyoo.Abstractions/Models/Utils/RequestError.cs @@ -18,7 +18,6 @@ using System; using System.Linq; -using JetBrains.Annotations; namespace Kyoo.Abstractions.Models.Utils { diff --git a/back/src/Kyoo.Abstractions/Utility/EnumerableExtensions.cs b/back/src/Kyoo.Abstractions/Utility/EnumerableExtensions.cs index f75626c2..f0ae5ffe 100644 --- a/back/src/Kyoo.Abstractions/Utility/EnumerableExtensions.cs +++ b/back/src/Kyoo.Abstractions/Utility/EnumerableExtensions.cs @@ -18,7 +18,6 @@ using System; using System.Collections.Generic; -using JetBrains.Annotations; namespace Kyoo.Utils { @@ -34,7 +33,6 @@ namespace Kyoo.Utils /// The action to execute is the list is empty /// The type of items inside the list /// The iterator proxied, there is no dual iterations. - [LinqTunnel] public static IEnumerable IfEmpty(this IEnumerable self, Action action) { static IEnumerable Generator(IEnumerable self, Action action) diff --git a/back/src/Kyoo.Abstractions/Utility/Merger.cs b/back/src/Kyoo.Abstractions/Utility/Merger.cs index d440e759..d60b2ae5 100644 --- a/back/src/Kyoo.Abstractions/Utility/Merger.cs +++ b/back/src/Kyoo.Abstractions/Utility/Merger.cs @@ -20,7 +20,6 @@ using System; using System.Collections.Generic; using System.Linq; using System.Reflection; -using JetBrains.Annotations; using Kyoo.Abstractions.Models.Attributes; namespace Kyoo.Utils @@ -44,7 +43,6 @@ namespace Kyoo.Utils /// A dictionary with the missing elements of /// set to those of . /// - [ContractAnnotation("first:notnull => notnull; second:notnull => notnull", true)] public static IDictionary? CompleteDictionaries( IDictionary? first, IDictionary? second, @@ -87,11 +85,7 @@ namespace Kyoo.Utils /// /// Fields of T will be completed /// - public static T Complete( - T first, - T? second, - [InstantHandle] Func? where = null - ) + public static T Complete(T first, T? second, Func? where = null) { if (second == null) return first; diff --git a/back/src/Kyoo.Abstractions/Utility/Utility.cs b/back/src/Kyoo.Abstractions/Utility/Utility.cs index 86e7f42f..933149ae 100644 --- a/back/src/Kyoo.Abstractions/Utility/Utility.cs +++ b/back/src/Kyoo.Abstractions/Utility/Utility.cs @@ -22,10 +22,8 @@ using System.Globalization; using System.Linq; using System.Linq.Expressions; using System.Reflection; -using System.Runtime.ExceptionServices; using System.Text; using System.Text.RegularExpressions; -using JetBrains.Annotations; namespace Kyoo.Utils { @@ -232,7 +230,6 @@ namespace Kyoo.Utils /// /// No method match the given constraints. /// The method handle of the matching method. - [PublicAPI] public static MethodInfo GetMethod( Type type, BindingFlags flag,