removed redundant Send<T> from IHttpClient

This commit is contained in:
Brendan Forster
2014-02-18 11:15:13 +11:00
parent c3cf8d1cca
commit 5f97d10970
2 changed files with 0 additions and 16 deletions
-8
View File
@@ -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<IResponse<T>> Send<T>(IRequest request)
{
return Send<T>(request, CancellationToken.None);
}
public async Task<IResponse<T>> Send<T>(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,
-8
View File
@@ -11,14 +11,6 @@ namespace Octokit.Internal
/// </remarks>
public interface IHttpClient
{
/// <summary>
/// Sends the specified request and returns a response.
/// </summary>
/// <typeparam name="T">The type of data to send</typeparam>
/// <param name="request">A <see cref="IRequest"/> that represents the HTTP request</param>
/// <returns>A <see cref="Task{T}" /> of <see cref="IResponse{T}"/></returns>
Task<IResponse<T>> Send<T>(IRequest request);
/// <summary>
/// Sends the specified request and returns a response.
/// </summary>