Skip to content

Commit

Permalink
Remove unused tracing overloads
Browse files Browse the repository at this point in the history
These had attributes that required PolySharp in consumers.
  • Loading branch information
kzu committed Jun 29, 2024
1 parent 6eecf46 commit 08a8488
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/SponsorLink/SponsorLink/Tracing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ namespace Devlooped.Sponsors;

static class Tracing
{
public static void Trace(string message, object? value, [CallerArgumentExpression("value")] string? expression = null, [CallerFilePath] string? filePath = null, [CallerLineNumber] int lineNumber = 0)
=> Trace($"{message}: {value} ({expression})", filePath, lineNumber);

public static void Trace(object? value, [CallerArgumentExpression("value")] string? expression = null, [CallerFilePath] string? filePath = null, [CallerLineNumber] int lineNumber = 0)
=> Trace($"{value} ({expression})", filePath, lineNumber);

public static void Trace([CallerMemberName] string? message = null, [CallerFilePath] string? filePath = null, [CallerLineNumber] int lineNumber = 0)
{
var trace = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("SPONSORLINK_TRACE"));
Expand Down

0 comments on commit 08a8488

Please sign in to comment.