Remove now-unused isParameterTagCompatible
Now that we only accept string-like arguments, as of the commit:
15a42df0 Remove number support from the router
This function is no longer used or required.
Tested: Code compiles.
Change-Id: If5eedd9f5903db01b403c4e5b23fceb23d0d10e6
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/http/utility.hpp b/http/utility.hpp
index 3fbdd0c..4d68e8f 100644
--- a/http/utility.hpp
+++ b/http/utility.hpp
@@ -64,40 +64,6 @@
static constexpr int value = subValue * toUnderlying(TypeCode::String);
};
-inline bool isParameterTagCompatible(uint64_t a, uint64_t b)
-{
- while (true)
- {
- if (a == 0 && b == 0)
- {
- // Both tags were equivalent, parameters are compatible
- return true;
- }
- if (a == 0 || b == 0)
- {
- // one of the tags had more parameters than the other
- return false;
- }
- TypeCode sa = static_cast<TypeCode>(a % toUnderlying(TypeCode::Max));
- TypeCode sb = static_cast<TypeCode>(b % toUnderlying(TypeCode::Max));
-
- if (sa == TypeCode::Path)
- {
- sa = TypeCode::String;
- }
- if (sb == TypeCode::Path)
- {
- sb = TypeCode::String;
- }
- if (sa != sb)
- {
- return false;
- }
- a /= toUnderlying(TypeCode::Max);
- b /= toUnderlying(TypeCode::Max);
- }
-}
-
constexpr inline uint64_t getParameterTag(std::string_view url)
{
uint64_t tagValue = 0;