hashtable: replace non-const iterator node accessors by a const version
[lttng-tools.git] / src / common / hashtable / hashtable.cpp
index 29d3ac499715f1e9da4e8eb8d7b4c79b2c786157..be7e77342df8b6d7c297f135c87194c9921cf47d 100644 (file)
@@ -492,64 +492,4 @@ unsigned long lttng_ht_get_count(struct lttng_ht *ht)
        cds_lfht_count_nodes(ht->ht, &scb, &count, &sca);
 
        return count;
-}
-
-/*
- * Return lttng ht string node from iterator.
- */
-struct lttng_ht_node_str *lttng_ht_iter_get_node_str(struct lttng_ht_iter *iter)
-{
-       struct cds_lfht_node *node;
-
-       LTTNG_ASSERT(iter);
-       node = cds_lfht_iter_get_node(&iter->iter);
-       if (!node) {
-               return nullptr;
-       }
-       return lttng::utils::container_of(node, &lttng_ht_node_str::node);
-}
-
-/*
- * Return lttng ht unsigned long node from iterator.
- */
-struct lttng_ht_node_ulong *lttng_ht_iter_get_node_ulong(struct lttng_ht_iter *iter)
-{
-       struct cds_lfht_node *node;
-
-       LTTNG_ASSERT(iter);
-       node = cds_lfht_iter_get_node(&iter->iter);
-       if (!node) {
-               return nullptr;
-       }
-       return lttng::utils::container_of(node, &lttng_ht_node_ulong::node);
-}
-
-/*
- * Return lttng ht unsigned long node from iterator.
- */
-struct lttng_ht_node_u64 *lttng_ht_iter_get_node_u64(struct lttng_ht_iter *iter)
-{
-       struct cds_lfht_node *node;
-
-       LTTNG_ASSERT(iter);
-       node = cds_lfht_iter_get_node(&iter->iter);
-       if (!node) {
-               return nullptr;
-       }
-       return lttng::utils::container_of(node, &lttng_ht_node_u64::node);
-}
-
-/*
- * Return lttng ht stream and index id node from iterator.
- */
-struct lttng_ht_node_two_u64 *lttng_ht_iter_get_node_two_u64(struct lttng_ht_iter *iter)
-{
-       struct cds_lfht_node *node;
-
-       LTTNG_ASSERT(iter);
-       node = cds_lfht_iter_get_node(&iter->iter);
-       if (!node) {
-               return nullptr;
-       }
-       return lttng::utils::container_of(node, &lttng_ht_node_two_u64::node);
-}
+}
\ No newline at end of file
This page took 0.023538 seconds and 4 git commands to generate.