Skip to content

Commit

Permalink
Remove WebClient
Browse files Browse the repository at this point in the history
  • Loading branch information
SeRi0uS007 committed May 30, 2024
1 parent 8e96906 commit d3e913d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 92 deletions.
7 changes: 1 addition & 6 deletions SteamAccountDataFetcher/SteamDataClient/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

namespace SteamAccountDataFetcher.SteamDataClient;

public class Client : IDisposable
public class Client
{
SteamClient _steamClient;
AutoTwoFactorAuthenticator _autoTwoFactorAuthenticator;
SteamWebClient _steamWebClient;
CallbackManager _callbackManager;
SteamUser _steamUser;
SteamApps _steamApps;
Expand Down Expand Up @@ -83,7 +82,6 @@ internal Client(string username, string password, string sharedSecret)
_callbackManager.Subscribe<DataFetcher.IsLimitedAccountCallback>(OnIsLimitedAccount);

_autoTwoFactorAuthenticator = new(this, sharedSecret);
_steamWebClient = new(this);
}

internal static void LoadPackagesCache(List<PackageInfo> packagesInfo) => _packagesInfo = packagesInfo;
Expand Down Expand Up @@ -211,7 +209,6 @@ void OnLoggedOn(SteamUser.LoggedOnCallback callback)
}
_responseAccountInfo.SteamId = callback.ClientSteamID.ConvertToUInt64();
Log("Logged into Steam.");
_steamWebClient.InitAsync();
}

void OnIsLimitedAccount(DataFetcher.IsLimitedAccountCallback callback)
Expand Down Expand Up @@ -348,8 +345,6 @@ async Task WaitOrProceed()
}
}

public void Dispose() => _steamWebClient?.Dispose();

internal void Log(string message, Logger.Level level = Logger.Level.Info, [CallerMemberName] string callerName = "") =>
Logger.Log($"{_instance},{Username.ToLower()} - {message}", level, callerName);
}
86 changes: 0 additions & 86 deletions SteamAccountDataFetcher/SteamDataClient/SteamWebClient.cs

This file was deleted.

0 comments on commit d3e913d

Please sign in to comment.