Skip to content

Commit

Permalink
cleanup(userspace/libsinsp): drop hash_combine function.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP committed Jan 9, 2025
1 parent 6ba4e77 commit fefb4fa
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions userspace/libsinsp/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,6 @@ bool set_socket_blocking(int sock, bool block);

unsigned int read_num_possible_cpus(void);

///////////////////////////////////////////////////////////////////////////////
// hashing helpers
///////////////////////////////////////////////////////////////////////////////

// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3876.pdf
template<typename T>
inline void hash_combine(std::size_t& seed, const T& val) {
seed ^= std::hash<T>()(val) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
}

///////////////////////////////////////////////////////////////////////////////
// Log helpers
///////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit fefb4fa

Please sign in to comment.