Remove unused class sun.misc.Hashing
This class used to exist in OpenJDK7u40. The last users of this class
in libcore were deleted as part of the update to OpenJDK8u60.
Since the class is no longer used, this CL removes it.
Bug: 35910877
Bug: 36429512
Test: Treehugger build succeeds.
Change-Id: I86967c807843f0093b3301216266c32403853f59
diff --git a/ojluni/src/main/java/sun/misc/Hashing.java b/ojluni/src/main/java/sun/misc/Hashing.java
deleted file mode 100644
index 2b3b144..0000000
--- a/ojluni/src/main/java/sun/misc/Hashing.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation. Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package sun.misc;
-
-import java.util.concurrent.ThreadLocalRandom;
-
-/**
- * Hashing utilities.
- *
- * Little endian implementations of Murmur3 hashing.
- */
-public class Hashing {
-
- /**
- * Static utility methods only.
- */
- private Hashing() {
- throw new Error("No instances");
- }
-
- // Spread bits to regularize both segment and index locations,
- // using variant of single-word Wang/Jenkins hash.
- //
- // Based on commit 1424a2a1a9fc53dc8b859a77c02c924.
- public static int singleWordWangJenkinsHash(Object k) {
- int h = k.hashCode();
-
- h += (h << 15) ^ 0xffffcd7d;
- h ^= (h >>> 10);
- h += (h << 3);
- h ^= (h >>> 6);
- h += (h << 2) + (h << 14);
- return h ^ (h >>> 16);
- }
-}
diff --git a/openjdk_java_files.mk b/openjdk_java_files.mk
index 7c13ca6..e500bd86 100644
--- a/openjdk_java_files.mk
+++ b/openjdk_java_files.mk
@@ -1398,7 +1398,6 @@
ojluni/src/main/java/sun/misc/FloatConsts.java \
ojluni/src/main/java/sun/misc/FormattedFloatingDecimal.java \
ojluni/src/main/java/sun/misc/FpUtils.java \
- ojluni/src/main/java/sun/misc/Hashing.java \
ojluni/src/main/java/sun/misc/HexDumpEncoder.java \
ojluni/src/main/java/sun/misc/InvalidJarIndexException.java \
ojluni/src/main/java/sun/misc/IOUtils.java \