Remove jetbrains attributes

This commit is contained in:
Zoe Roux 2024-03-23 00:01:39 +01:00
parent e7bedd6a29
commit 5997921eb9
No known key found for this signature in database
5 changed files with 1 additions and 15 deletions

View File

@ -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.
/// </remarks>
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
public interface IPlugin
{
/// <summary>

View File

@ -18,7 +18,6 @@
using System;
using System.Linq;
using JetBrains.Annotations;
namespace Kyoo.Abstractions.Models.Utils
{

View File

@ -18,7 +18,6 @@
using System;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace Kyoo.Utils
{
@ -34,7 +33,6 @@ namespace Kyoo.Utils
/// <param name="action">The action to execute is the list is empty</param>
/// <typeparam name="T">The type of items inside the list</typeparam>
/// <returns>The iterator proxied, there is no dual iterations.</returns>
[LinqTunnel]
public static IEnumerable<T> IfEmpty<T>(this IEnumerable<T> self, Action action)
{
static IEnumerable<T> Generator(IEnumerable<T> self, Action action)

View File

@ -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 <paramref name="second"/>
/// set to those of <paramref name="first"/>.
/// </returns>
[ContractAnnotation("first:notnull => notnull; second:notnull => notnull", true)]
public static IDictionary<T, T2>? CompleteDictionaries<T, T2>(
IDictionary<T, T2>? first,
IDictionary<T, T2>? second,
@ -87,11 +85,7 @@ namespace Kyoo.Utils
/// </param>
/// <typeparam name="T">Fields of T will be completed</typeparam>
/// <returns><paramref name="first"/></returns>
public static T Complete<T>(
T first,
T? second,
[InstantHandle] Func<PropertyInfo, bool>? where = null
)
public static T Complete<T>(T first, T? second, Func<PropertyInfo, bool>? where = null)
{
if (second == null)
return first;

View File

@ -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
/// </param>
/// <exception cref="ArgumentException">No method match the given constraints.</exception>
/// <returns>The method handle of the matching method.</returns>
[PublicAPI]
public static MethodInfo GetMethod(
Type type,
BindingFlags flag,