From 25c6881087fab9e640ef0bc5f3ca492465a6bf3f Mon Sep 17 00:00:00 2001 From: Dave Skender <8432125+DaveSkender@users.noreply.github.com> Date: Sat, 2 Nov 2024 23:59:11 -0400 Subject: [PATCH] remove superfluous attributes --- src/_common/Quotes/Quote.Converters.cs | 8 ++------ src/s-z/Sma/Sma.Utilities.cs | 7 ++----- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/_common/Quotes/Quote.Converters.cs b/src/_common/Quotes/Quote.Converters.cs index 692831837..7db6c964c 100644 --- a/src/_common/Quotes/Quote.Converters.cs +++ b/src/_common/Quotes/Quote.Converters.cs @@ -1,5 +1,3 @@ -using System.ComponentModel; - namespace Skender.Stock.Indicators; // QUOTE UTILITIES (CONVERTERS) @@ -8,8 +6,7 @@ public static partial class Quotes { /* LISTS */ - // convert TQuote type list to built-in Quote type list - [Category("Public API only")] + // convert TQuote type list to built-in Quote type list (public API only) public static IReadOnlyList ToQuoteList( this IReadOnlyList quotes) where TQuote : IQuote @@ -30,8 +27,7 @@ internal static List ToQuoteDList( /* TYPES */ - // convert any IQuote type to native Quote type - [Category("Public API only")] + // convert any IQuote type to native Quote type (public API only) public static Quote ToQuote(this TQuote quote) where TQuote : IQuote diff --git a/src/s-z/Sma/Sma.Utilities.cs b/src/s-z/Sma/Sma.Utilities.cs index e63cbef07..fe202fc86 100644 --- a/src/s-z/Sma/Sma.Utilities.cs +++ b/src/s-z/Sma/Sma.Utilities.cs @@ -1,4 +1,3 @@ -using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Numerics; @@ -24,8 +23,7 @@ public static partial class Sma /// if incalculable /// values are in range. /// - [Category("Public API only")] - public static double? Average( + public static double? Average( // public API only this IReadOnlyList values, int lookbackPeriods, int? endIndex = null) @@ -73,8 +71,7 @@ internal static double Increment( // TODO: apply this SMA increment method more widely in other indicators (see EMA example) } - [ExcludeFromCodeCoverage] - [Category("Experimental")] + [ExcludeFromCodeCoverage] // experimental SIMD code internal static double[] Increment(this double[] prices, int period) { // TODO: remove/consider experiment, has rounding errors