From 5f97d10970c3e3d54924f7d8d2a8cc093975783a Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Tue, 18 Feb 2014 11:15:13 +1100 Subject: [PATCH] removed redundant Send from IHttpClient --- Octokit/Http/HttpClientAdapter.cs | 8 -------- Octokit/Http/IHttpClient.cs | 8 -------- 2 files changed, 16 deletions(-) diff --git a/Octokit/Http/HttpClientAdapter.cs b/Octokit/Http/HttpClientAdapter.cs index 2ee9d25f..8bca7a3a 100644 --- a/Octokit/Http/HttpClientAdapter.cs +++ b/Octokit/Http/HttpClientAdapter.cs @@ -1,6 +1,4 @@ using System; -using System.Collections; -using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; @@ -28,11 +26,6 @@ namespace Octokit.Internal this.webProxy = webProxy; } - public Task> Send(IRequest request) - { - return Send(request, CancellationToken.None); - } - public async Task> Send(IRequest request, CancellationToken cancellationToken) { Ensure.ArgumentNotNull(request, "request"); @@ -51,7 +44,6 @@ namespace Octokit.Internal httpOptions.Proxy = webProxy; } - var http = new HttpClient(httpOptions) { BaseAddress = request.BaseAddress, diff --git a/Octokit/Http/IHttpClient.cs b/Octokit/Http/IHttpClient.cs index eaf7696c..a580d75b 100644 --- a/Octokit/Http/IHttpClient.cs +++ b/Octokit/Http/IHttpClient.cs @@ -11,14 +11,6 @@ namespace Octokit.Internal /// public interface IHttpClient { - /// - /// Sends the specified request and returns a response. - /// - /// The type of data to send - /// A that represents the HTTP request - /// A of - Task> Send(IRequest request); - /// /// Sends the specified request and returns a response. ///