diff options
author | Ed Tanous <edtanous@google.com> | 2023-06-26 21:55:05 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2023-06-27 20:48:35 +0300 |
commit | 3e871dbc7b158ac7d607dce0c0d1e4cf2206a9a4 (patch) | |
tree | 280937b54c68fe9508f857bd019e53ab8987384f /http/utility.hpp | |
parent | 9e9325e66dee3fb8ba8c15bdb526d35f4a208e84 (diff) | |
download | bmcweb-3e871dbc7b158ac7d607dce0c0d1e4cf2206a9a4.tar.xz |
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>
Diffstat (limited to 'http/utility.hpp')
-rw-r--r-- | http/utility.hpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/http/utility.hpp b/http/utility.hpp index 3fbdd0c32f..4d68e8f6fb 100644 --- a/http/utility.hpp +++ b/http/utility.hpp @@ -64,40 +64,6 @@ struct computeParameterTagFromArgsList<Arg, Args...> 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; |