diff options
author | bunnei <bunneidev@gmail.com> | 2015-10-10 04:46:47 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-10-22 03:58:59 +0200 |
commit | 240a3b80d970b56b4ed3671536489eb0e32532ae (patch) | |
tree | 487d5b0cda1965e8e80cd8e3c17b0cece3ad3cec /src/common/common_funcs.h | |
parent | gl_shader_gen: Require explicit uniform locations. (diff) | |
download | yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar.gz yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar.bz2 yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar.lz yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar.xz yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar.zst yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.zip |
Diffstat (limited to 'src/common/common_funcs.h')
-rw-r--r-- | src/common/common_funcs.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 7a8dd39a0..ed20c3629 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h @@ -4,9 +4,6 @@ #pragma once -#include <cstddef> -#include <functional> - #include "common_types.h" #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) @@ -98,18 +95,3 @@ inline u64 _rotr64(u64 x, unsigned int shift){ // This function might change the error code. // Defined in Misc.cpp. const char* GetLastErrorMsg(); - -template <typename T> -inline std::size_t hash(const T& o) { - return std::hash<T>()(o); -} - -template <typename T> -inline std::size_t combine_hash(const T& o) { - return hash(o); -} - -template <typename T, typename... Args> -inline std::size_t combine_hash(const T& o, const Args&... args) { - return hash(o) * 3 + combine_hash(args...); -} |