From 4cca1940007652f301b82ad7fed03d8f49bbb486 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 5 Feb 2018 16:03:04 -0800 Subject: [PATCH] drop *HashFunction not really implemented --- src/pv/pvIntrospect.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/pv/pvIntrospect.h b/src/pv/pvIntrospect.h index 50ab8f5..30eb70f 100644 --- a/src/pv/pvIntrospect.h +++ b/src/pv/pvIntrospect.h @@ -1275,41 +1275,6 @@ OP(pvDouble, double) OP(pvString, std::string) #undef OP -/** - * @brief Hash a Scalar - * - */ -struct ScalarHashFunction { - size_t operator() (const Scalar& scalar) const { return scalar.getScalarType(); } -}; - -/** - * @brief Hash a ScalarArray - * - */ -struct ScalarArrayHashFunction { - size_t operator() (const ScalarArray& scalarArray) const { return 0x10 | scalarArray.getElementType(); } -}; - -/** - * @brief Hash a Structure - * - */ -struct StructureHashFunction { - size_t operator() (const Structure& /*structure*/) const { return 0; } - // TODO hash -// final int PRIME = 31; -// return PRIME * Arrays.hashCode(fieldNames) + Arrays.hashCode(fields); -}; - -/** - * @brief Hash a StructureArray - * - */ -struct StructureArrayHashFunction { - size_t operator() (const StructureArray& structureArray) const { StructureHashFunction shf; return (0x10 | shf(*(structureArray.getStructure()))); } -}; - bool epicsShareExtern operator==(const Field&, const Field&); bool epicsShareExtern operator==(const Scalar&, const Scalar&); bool epicsShareExtern operator==(const ScalarArray&, const ScalarArray&);