Skip to content

Commit ce64b39

Browse files
committed
Bah
Shouldn't introduce methods that are already marked as obsolete.
1 parent 7262fb5 commit ce64b39

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

src/Skybrud.Essentials.Http/Client/HttpClientAsync.Patch.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,6 @@ public virtual async Task<IHttpResponse> PatchAsync(string url) {
2121
return await GetResponseAsync(HttpRequest.Patch(url));
2222
}
2323

24-
/// <summary>
25-
/// Makes a PATCH request to the specified <paramref name="url"/>.
26-
/// </summary>
27-
/// <param name="url">The URL of the request.</param>
28-
/// <param name="options">The options for the call to the specified <paramref name="url"/>.</param>
29-
/// <returns>An instance of <see cref="IHttpResponse"/> representing the response.</returns>
30-
[Obsolete("Use 'GetResponse' method and 'IHttpRequestOptions' class as parameter instead.")]
31-
public virtual async Task<IHttpResponse> PatchAsync(string url, IHttpGetOptions options) {
32-
if (string.IsNullOrWhiteSpace(url)) throw new ArgumentNullException(nameof(url));
33-
if (options == null) throw new ArgumentNullException(nameof(options));
34-
return await GetResponseAsync(HttpRequest.Patch(url, options.GetQueryString()));
35-
}
36-
37-
/// <summary>
38-
/// Makes a PATCH request to the specified <paramref name="url"/>.
39-
/// </summary>
40-
/// <param name="url">The URL of the request.</param>
41-
/// <param name="options">The options for the call to the specified <paramref name="url"/>.</param>
42-
/// <returns>An instance of <see cref="IHttpResponse"/> representing the response.</returns>
43-
[Obsolete("Use 'GetResponse' method and 'IHttpRequestOptions' class as parameter instead.")]
44-
public virtual async Task<IHttpResponse> PatchAsync(string url, IHttpPostOptions options) {
45-
if (string.IsNullOrWhiteSpace(url)) throw new ArgumentNullException(nameof(url));
46-
if (options == null) throw new ArgumentNullException(nameof(options));
47-
return await GetResponseAsync(HttpRequest.Patch(url, options.GetQueryString(), options.GetPostData()));
48-
}
49-
5024
/// <summary>
5125
/// Makes a PATCH request to the specified <paramref name="url"/>.
5226
/// </summary>

0 commit comments

Comments
 (0)