Skip to content

Commit

Permalink
Remove obsolete alias
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Sep 30, 2024
1 parent 42e07c2 commit ae0704e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
6 changes: 0 additions & 6 deletions ArchiSteamFarm/Steam/Interaction/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3482,12 +3482,6 @@ internal void OnNewLicenseList() {
if (!Enum.TryParse(channelText, true, out channel) || (channel == GlobalConfig.EUpdateChannel.None)) {
return FormatStaticResponse(Strings.FormatErrorIsInvalid(nameof(channelText)));
}

#pragma warning disable CS0618 // TODO: Remove me in the future
if (channelText.Contains(nameof(GlobalConfig.EUpdateChannel.Experimental), StringComparison.OrdinalIgnoreCase)) {
return FormatStaticResponse(Strings.FormatWarningFailedWithError(Strings.FormatWarningDeprecated(nameof(GlobalConfig.EUpdateChannel.Experimental), nameof(GlobalConfig.EUpdateChannel.PreRelease))));
}
#pragma warning restore CS0618 // TODO: Remove me in the future
}

(bool success, string? message, Version? version) = await Actions.Update(channel, forced).ConfigureAwait(false);
Expand Down
7 changes: 1 addition & 6 deletions ArchiSteamFarm/Storage/GlobalConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -615,15 +615,10 @@ public enum EPluginsUpdateMode : byte {
Blacklist
}

#pragma warning disable CA1027 // TODO: Remove me after Experimental alias disappears
[PublicAPI]
public enum EUpdateChannel : byte {
None,
Stable,
PreRelease,

[Obsolete($"Use {nameof(PreRelease)} instead, this alias will be removed in the future version")]
Experimental = PreRelease
PreRelease
}
#pragma warning restore CA1027 // TODO: Remove me after Experimental alias disappears
}

0 comments on commit ae0704e

Please sign in to comment.