From 2972fd55bfbd893fb2a7a0493d6ecbdbf8a4aaa6 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 9 Mar 2017 14:56:55 +0100 Subject: [PATCH] platform/trivial: remove obsolete code comment --- src/platform/nmp-object.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/platform/nmp-object.c b/src/platform/nmp-object.c index 1503ca9a17..0965ee9dfc 100644 --- a/src/platform/nmp-object.c +++ b/src/platform/nmp-object.c @@ -985,11 +985,6 @@ nmp_cache_id_hash (const NMPCacheId *id) guint hash = 5381; guint i, n; - /* for hashing we only iterate over the actually set bytes and skip the - * zero padding at the end (which depends on the type of the id). - * - * For the equal implementation, we don't care about that and compare the - * entire NMPCacheId sized struct. */ n = _nmp_cache_id_size_by_type (id->_id_type); for (i = 0; i < n; i++) hash = ((hash << 5) + hash) + ((char *) id)[i]; /* hash * 33 + c */