From 7f34f476185fb403276444b4cf0377d1ddb101e5 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 15 Aug 2017 17:38:10 -0700 Subject: [PATCH] Get rid of last bits of nodeinfo --- src/Collections/structs.c | 9 --------- src/Collections/structs.h | 1 - src/classlist.h | 3 --- 3 files changed, 13 deletions(-) diff --git a/src/Collections/structs.c b/src/Collections/structs.c index e528f64..9c44ea7 100644 --- a/src/Collections/structs.c +++ b/src/Collections/structs.c @@ -70,16 +70,7 @@ static inline bool order_edge_equals(OrderEdge* key1, OrderEdge* key2){ return key1->sink == key2->sink && key1->source == key2->source; } -static inline unsigned int node_info_hash_function(OrderNode * hash) { - return (uint)((intptr_t)hash >> 4); -} - -static inline bool node_info_equals(OrderNode * key1, OrderNode * key2) { - return key1 == key2; -} - HashTableImpl(OrderPair, OrderPair *, OrderPair *, order_pair_hash_Function, order_pair_equals, ourfree); -HashTableImpl(NodeInfo, OrderNode *, NodeInfo *, node_info_hash_function, node_info_equals, ourfree); HashSetImpl(TableEntry, TableEntry*, table_entry_hash_Function, table_entry_equals); HashSetImpl(OrderNode, OrderNode*, order_node_hash_Function, order_node_equals); diff --git a/src/Collections/structs.h b/src/Collections/structs.h index 2a885e7..4343d34 100644 --- a/src/Collections/structs.h +++ b/src/Collections/structs.h @@ -25,7 +25,6 @@ VectorDef(OrderGraph, OrderGraph*); HashTableDef(Void, void *, void *); HashTableDef(OrderPair, OrderPair *, OrderPair *); -HashTableDef(NodeInfo, OrderNode*, NodeInfo*); HashSetDef(Void, void *); HashSetDef(TableEntry, TableEntry*); diff --git a/src/classlist.h b/src/classlist.h index dd37128..339dee3 100644 --- a/src/classlist.h +++ b/src/classlist.h @@ -94,9 +94,6 @@ typedef struct OrderEdge OrderEdge; struct OrderEncoder; typedef struct OrderEncoder OrderEncoder; -struct NodeInfo; -typedef struct NodeInfo NodeInfo; - typedef unsigned int uint; typedef long int int64; typedef uint64_t VarType; -- 2.34.1