Skip to content

Commit 42e4a52

Browse files
committed
Removed unused httpmethods object.
1 parent 2075c91 commit 42e4a52

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Templates/CSharp/Requests/IMethodRequest.cs.tt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,6 @@ var entityName = method.Class.Name.ToCheckedCase();
99
var isFunction = method.IsFunction;
1010
var isAction = !isFunction;
1111
var isComposable = method.IsComposable;
12-
var httpMethods = new System.Collections.Generic.List<string>();
13-
14-
// Set the supported verbs based on whether this is function, composable function, or an action.
15-
if (isFunction)
16-
{
17-
httpMethods.Add("GET");
18-
if (isComposable)
19-
{
20-
httpMethods.Add("PATCH");
21-
httpMethods.Add("PUT");
22-
}
23-
}
24-
else
25-
{
26-
httpMethods.Add("POST");
27-
}
2812

2913
var methodName = method.Name.Substring(method.Name.IndexOf('.') + 1).ToCheckedCase();
3014
var requestType = entityName + methodName + "Request";

0 commit comments

Comments
 (0)