Skip to content

Commit

Permalink
Fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimontana82 committed Feb 7, 2024
1 parent 47172f1 commit 2b1092e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ internal class SubscriptionManager
internal readonly SubscriptionUsageManager _subscriptionUsageManager;

private bool _renewalRequested = false;
private bool _upgradeRequested = false;

private static readonly object _subscriptionManagerLock = new object();
private static SubscriptionManager _instance = null;
Expand Down Expand Up @@ -87,10 +86,9 @@ internal void SetSubscriptionStorageProvider_Internal(ISubscriptionStorageProvid
return;
}

_upgradeRequested = upgradeRequested;
_renewalRequested = renewalRequested;

_subscriptionUsage = _subscriptionUsageManager.ReadAndUpdateUsage(_subscriptionInfo, subscriptionStorageProvider, userReader, _upgradeRequested);
_subscriptionUsage = _subscriptionUsageManager.ReadAndUpdateUsage(_subscriptionInfo, subscriptionStorageProvider, userReader, upgradeRequested);
}
}
internal void SetSubscriptionStorageProvider(ISubscriptionStorageProvider subscriptionStorageProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,5 @@ internal bool IsUsageValid()
}
return true;
}

private bool IsRunningInContinuousIntegration()
{
return "1".Equals(_environmentReader.GetEnvironmentVariable("FAKE_XRM_EASY_CI"))
|| "True".Equals(_environmentReader.GetEnvironmentVariable("TF_BUILD"));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ public class SubscriptionManagerTests
{
private SubscriptionManager _subscriptionManager;
private readonly FakeEnvironmentReader _environmentReader;
private readonly ISubscriptionInfo _subscriptionInfo;
private readonly ISubscriptionUsage _subscriptionUsage;
private readonly SubscriptionUsageManager _subscriptionUsageManager;
private readonly ISubscriptionStorageProvider _fakeSubscriptionStorageProvider;
public SubscriptionManagerTests()
Expand Down

0 comments on commit 2b1092e

Please sign in to comment.