|
22 | 22 | #include <unordered_map> |
23 | 23 | #include <unordered_set> |
24 | 24 |
|
| 25 | +#include "absl/strings/str_split.h" |
25 | 26 | #include "http_template.h" |
26 | 27 | #include "path_matcher_node.h" |
27 | 28 | #include "percent_encoding.h" |
28 | | -#include "absl/strings/str_split.h" |
29 | 29 |
|
30 | 30 | namespace google { |
31 | 31 | namespace grpc { |
@@ -56,8 +56,6 @@ class PathMatcher { |
56 | 56 | public: |
57 | 57 | ~PathMatcher(){}; |
58 | 58 |
|
59 | | - // TODO: Do not template VariableBinding |
60 | | - template <class VariableBinding> |
61 | 59 | Method Lookup(const std::string& http_method, const std::string& path, |
62 | 60 | const std::string& query_params, |
63 | 61 | std::vector<VariableBinding>* variable_bindings, |
@@ -173,7 +171,6 @@ class PathMatcherBuilder { |
173 | 171 |
|
174 | 172 | namespace { |
175 | 173 |
|
176 | | -template <class VariableBinding> |
177 | 174 | void ExtractBindingsFromPath(const std::vector<HttpTemplate::Variable>& vars, |
178 | 175 | const std::vector<std::string>& parts, |
179 | 176 | UrlUnescapeSpec unescape_spec, |
@@ -210,7 +207,6 @@ void ExtractBindingsFromPath(const std::vector<HttpTemplate::Variable>& vars, |
210 | 207 | } |
211 | 208 | } |
212 | 209 |
|
213 | | -template <class VariableBinding> |
214 | 210 | void ExtractBindingsFromQueryParameters( |
215 | 211 | const std::string& query_params, |
216 | 212 | const std::unordered_set<std::string>& system_params, |
@@ -325,7 +321,6 @@ PathMatcher<Method>::PathMatcher(PathMatcherBuilder<Method>&& builder) |
325 | 321 | // TODO: cache results by adding get/put methods here (if profiling reveals |
326 | 322 | // benefit) |
327 | 323 | template <class Method> |
328 | | -template <class VariableBinding> |
329 | 324 | Method PathMatcher<Method>::Lookup( |
330 | 325 | const std::string& http_method, const std::string& path, |
331 | 326 | const std::string& query_params, |
|
0 commit comments