[trace-provider] Delete fnv1hash
This header is unused.
Change-Id: Icf353673e864d0b3418fdabb697cc7dd72107799
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1204366
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
Fuchsia-Auto-Submit: Gwen Mittertreiner <gmtr@google.com>
Reviewed-by: Krithika Balan <krithikabalan@google.com>
diff --git a/zircon/system/ulib/trace-provider/BUILD.gn b/zircon/system/ulib/trace-provider/BUILD.gn
index b882a05..47e7cec 100644
--- a/zircon/system/ulib/trace-provider/BUILD.gn
+++ b/zircon/system/ulib/trace-provider/BUILD.gn
@@ -34,7 +34,6 @@
sources += [
"export.h",
- "fnv1hash.h",
"handler.cc",
"provider_impl.cc",
"provider_impl.h",
diff --git a/zircon/system/ulib/trace-provider/fnv1hash.h b/zircon/system/ulib/trace-provider/fnv1hash.h
deleted file mode 100644
index be586d2..0000000
--- a/zircon/system/ulib/trace-provider/fnv1hash.h
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2016 The Fuchsia Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// TODO(https://fxbug.dev/42097124): De-dupe this.
-
-#ifndef ZIRCON_SYSTEM_ULIB_TRACE_PROVIDER_FNV1HASH_H_
-#define ZIRCON_SYSTEM_ULIB_TRACE_PROVIDER_FNV1HASH_H_
-
-#include <stdint.h>
-#include <string.h>
-
-// FNV-1a Hash
-//
-// http://www.isthe.com/chongo/tech/comp/fnv/index.html
-
-#define FNV64_PRIME (1099511628211ULL)
-#define FNV64_OFFSET_BASIS (14695981039346656037ULL)
-
-static inline uint64_t fnv1a64(const void* ptr, size_t len) {
- uint64_t n = FNV64_OFFSET_BASIS;
- const uint8_t* data = (const uint8_t*)ptr;
- while (len-- > 0) {
- n = (n ^ (*data++)) * FNV64_PRIME;
- }
- return n;
-}
-
-#define fnv1a64str(str) fnv1a64(str, strlen(str))
-
-#endif // ZIRCON_SYSTEM_ULIB_TRACE_PROVIDER_FNV1HASH_H_
diff --git a/zircon/system/ulib/trace-provider/test/BUILD.gn b/zircon/system/ulib/trace-provider/test/BUILD.gn
index 8f3c823..d5b4c47 100644
--- a/zircon/system/ulib/trace-provider/test/BUILD.gn
+++ b/zircon/system/ulib/trace-provider/test/BUILD.gn
@@ -20,7 +20,6 @@
visibility = [ ":*" ]
output_name = "trace-provider-test"
sources = [
- "../fnv1hash.h",
"../session.h",
"provider_test.cc",
"session_test.cc",