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;
using System.Collections.Generic; using System.Collections.Generic;
using Autofac; using Autofac;
using JetBrains.Annotations;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
namespace Kyoo.Abstractions.Controllers namespace Kyoo.Abstractions.Controllers
@ -31,7 +30,6 @@ namespace Kyoo.Abstractions.Controllers
/// You can inject services in the IPlugin constructor. /// You can inject services in the IPlugin constructor.
/// You should only inject well known services like an ILogger, IConfiguration or IWebHostEnvironment. /// You should only inject well known services like an ILogger, IConfiguration or IWebHostEnvironment.
/// </remarks> /// </remarks>
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
public interface IPlugin public interface IPlugin
{ {
/// <summary> /// <summary>

View File

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

View File

@ -18,7 +18,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using JetBrains.Annotations;
namespace Kyoo.Utils namespace Kyoo.Utils
{ {
@ -34,7 +33,6 @@ namespace Kyoo.Utils
/// <param name="action">The action to execute is the list is empty</param> /// <param name="action">The action to execute is the list is empty</param>
/// <typeparam name="T">The type of items inside the list</typeparam> /// <typeparam name="T">The type of items inside the list</typeparam>
/// <returns>The iterator proxied, there is no dual iterations.</returns> /// <returns>The iterator proxied, there is no dual iterations.</returns>
[LinqTunnel]
public static IEnumerable<T> IfEmpty<T>(this IEnumerable<T> self, Action action) public static IEnumerable<T> IfEmpty<T>(this IEnumerable<T> self, Action action)
{ {
static IEnumerable<T> Generator(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.Collections.Generic;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using JetBrains.Annotations;
using Kyoo.Abstractions.Models.Attributes; using Kyoo.Abstractions.Models.Attributes;
namespace Kyoo.Utils namespace Kyoo.Utils
@ -44,7 +43,6 @@ namespace Kyoo.Utils
/// A dictionary with the missing elements of <paramref name="second"/> /// A dictionary with the missing elements of <paramref name="second"/>
/// set to those of <paramref name="first"/>. /// set to those of <paramref name="first"/>.
/// </returns> /// </returns>
[ContractAnnotation("first:notnull => notnull; second:notnull => notnull", true)]
public static IDictionary<T, T2>? CompleteDictionaries<T, T2>( public static IDictionary<T, T2>? CompleteDictionaries<T, T2>(
IDictionary<T, T2>? first, IDictionary<T, T2>? first,
IDictionary<T, T2>? second, IDictionary<T, T2>? second,
@ -87,11 +85,7 @@ namespace Kyoo.Utils
/// </param> /// </param>
/// <typeparam name="T">Fields of T will be completed</typeparam> /// <typeparam name="T">Fields of T will be completed</typeparam>
/// <returns><paramref name="first"/></returns> /// <returns><paramref name="first"/></returns>
public static T Complete<T>( public static T Complete<T>(T first, T? second, Func<PropertyInfo, bool>? where = null)
T first,
T? second,
[InstantHandle] Func<PropertyInfo, bool>? where = null
)
{ {
if (second == null) if (second == null)
return first; return first;

View File

@ -22,10 +22,8 @@ using System.Globalization;
using System.Linq; using System.Linq;
using System.Linq.Expressions; using System.Linq.Expressions;
using System.Reflection; using System.Reflection;
using System.Runtime.ExceptionServices;
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using JetBrains.Annotations;
namespace Kyoo.Utils namespace Kyoo.Utils
{ {
@ -232,7 +230,6 @@ namespace Kyoo.Utils
/// </param> /// </param>
/// <exception cref="ArgumentException">No method match the given constraints.</exception> /// <exception cref="ArgumentException">No method match the given constraints.</exception>
/// <returns>The method handle of the matching method.</returns> /// <returns>The method handle of the matching method.</returns>
[PublicAPI]
public static MethodInfo GetMethod( public static MethodInfo GetMethod(
Type type, Type type,
BindingFlags flag, BindingFlags flag,