Skip to content

Commit fefb4fa

Browse files
committed
cleanup(userspace/libsinsp): drop hash_combine function.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
1 parent 6ba4e77 commit fefb4fa

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

userspace/libsinsp/utils.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -325,16 +325,6 @@ bool set_socket_blocking(int sock, bool block);
325325

326326
unsigned int read_num_possible_cpus(void);
327327

328-
///////////////////////////////////////////////////////////////////////////////
329-
// hashing helpers
330-
///////////////////////////////////////////////////////////////////////////////
331-
332-
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3876.pdf
333-
template<typename T>
334-
inline void hash_combine(std::size_t& seed, const T& val) {
335-
seed ^= std::hash<T>()(val) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
336-
}
337-
338328
///////////////////////////////////////////////////////////////////////////////
339329
// Log helpers
340330
///////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)