diff --git a/Octokit/Helpers/ApiExtensions.cs b/Octokit/Helpers/ApiExtensions.cs index 81b1ab8e..b0afbd42 100644 --- a/Octokit/Helpers/ApiExtensions.cs +++ b/Octokit/Helpers/ApiExtensions.cs @@ -80,7 +80,7 @@ namespace Octokit Ensure.ArgumentNotNull(connection, "connection"); Ensure.ArgumentNotNull(uri, "uri"); - return connection.Get(uri, null, null, false); + return connection.Get(uri, null, null); } /// diff --git a/Octokit/Http/Connection.cs b/Octokit/Http/Connection.cs index ed5dd957..8f7412e1 100644 --- a/Octokit/Http/Connection.cs +++ b/Octokit/Http/Connection.cs @@ -157,24 +157,6 @@ namespace Octokit return SendData(uri.ApplyParameters(parameters), HttpMethod.Get, null, accepts, null, CancellationToken.None); } - /// - /// Performs an asynchronous HTTP GET request. - /// Attempts to map the response to an object of type - /// - /// The type to map the response to - /// URI endpoint to send request to - /// Querystring parameters for the request - /// Specifies accepted response media types. - /// To follow redirect links automatically or not - /// representing the received HTTP response - [Obsolete("allowAutoRedirect is no longer respected and will be deprecated in a future release")] - public Task> Get(Uri uri, IDictionary parameters, string accepts, bool allowAutoRedirect) - { - Ensure.ArgumentNotNull(uri, "uri"); - - return SendData(uri.ApplyParameters(parameters), HttpMethod.Get, null, accepts, null, CancellationToken.None); - } - public Task> Get(Uri uri, IDictionary parameters, string accepts, CancellationToken cancellationToken) { Ensure.ArgumentNotNull(uri, "uri"); diff --git a/Octokit/Http/IConnection.cs b/Octokit/Http/IConnection.cs index 74b0ab0a..39ddac53 100644 --- a/Octokit/Http/IConnection.cs +++ b/Octokit/Http/IConnection.cs @@ -32,20 +32,6 @@ namespace Octokit [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] Task> Get(Uri uri, IDictionary parameters, string accepts); - /// - /// Performs an asynchronous HTTP GET request. - /// Attempts to map the response to an object of type - /// - /// The type to map the response to - /// URI endpoint to send request to - /// Querystring parameters for the request - /// Specifies accepted response media types. - /// To follow redirect links automatically or not - /// representing the received HTTP response - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")] - [Obsolete("allowAutoRedirect is no longer respected and will be deprecated in a future release")] - Task> Get(Uri uri, IDictionary parameters, string accepts, bool allowAutoRedirect); - /// /// Performs an asynchronous HTTP GET request. /// Attempts to map the response to an object of type