From fed9c07e7fba16876ae2c5a330d047d88741c38b Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Mon, 27 Sep 2021 19:49:11 -0700 Subject: [PATCH] Release 2.0.0 - Remove deprecated RiotApi constructors. --- riven/Cargo.toml | 2 +- riven/src/riot_api.rs | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/riven/Cargo.toml b/riven/Cargo.toml index 1aeccc2..fde1373 100644 --- a/riven/Cargo.toml +++ b/riven/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "riven" -version = "2.0.0-rc.3" +version = "2.0.0" authors = ["Mingwei Samuel "] repository = "https://github.com/MingweiSamuel/Riven" description = "Riot Games API Library" diff --git a/riven/src/riot_api.rs b/riven/src/riot_api.rs index fb1aafd..4962d39 100644 --- a/riven/src/riot_api.rs +++ b/riven/src/riot_api.rs @@ -68,22 +68,6 @@ impl RiotApi { } } - /// Constructs a new instance from the given [RiotApiConfig](crate::RiotApiConfig), consuming it. - #[deprecated(since = "2.0", note = "use `RiotApi::new(config)` instead")] - pub fn with_config(config: RiotApiConfig) -> Self { - Self::new(config) - } - - /// Constructs a new instance from the given API key, using default configuration. - /// - /// `api_key` should be a Riot Games API key from - /// [https://developer.riotgames.com/](https://developer.riotgames.com/), - /// and should look like `"RGAPI-01234567-89ab-cdef-0123-456789abcdef"`. - #[deprecated(since = "2.0", note = "use `RiotApi::new(api_key)` instead")] - pub fn with_key(api_key: impl AsRef<[u8]>) -> Self { - Self::new(api_key) - } - /// This method should generally not be used directly. Consider using endpoint wrappers instead. /// /// Creates a `RequestBuilder` instance with the given parameters, for use with the `execute*()` methods.