summaryrefslogtreecommitdiff
path: root/src/CommonAPI/MiddlewareInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommonAPI/MiddlewareInfo.h')
-rw-r--r--src/CommonAPI/MiddlewareInfo.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/CommonAPI/MiddlewareInfo.h b/src/CommonAPI/MiddlewareInfo.h
index 6b69691..ffbc21c 100644
--- a/src/CommonAPI/MiddlewareInfo.h
+++ b/src/CommonAPI/MiddlewareInfo.h
@@ -23,31 +23,16 @@ namespace CommonAPI {
class Runtime;
-inline int FNV1aHash(const char* s) {
- const int FNV_offset_basis = 2166136261u;
- const int FNV_prime = 16777619;
-
- int hashValue = FNV_offset_basis;
- for (unsigned int i = 0; i < strlen(s); i++) {
- hashValue = (hashValue ^ s[i]) * FNV_prime;
- }
- return hashValue;
-}
-
-
typedef std::shared_ptr<Runtime> (*MiddlewareRuntimeLoadFunction) ();
struct MiddlewareInfo {
const char* middlewareName_;
- const int middlewareId_;
MiddlewareRuntimeLoadFunction getInstance_;
MiddlewareInfo(const char* middlewareName, MiddlewareRuntimeLoadFunction middlewareRuntimeLoadFunction):
middlewareName_(middlewareName),
- middlewareId_(FNV1aHash(middlewareName)),
- getInstance_(middlewareRuntimeLoadFunction) {
-}
+ getInstance_(middlewareRuntimeLoadFunction) {}
};