summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2017-12-10 00:27:01 -0500
committerEric Haszlakiewicz <erh+git@nimenees.com>2017-12-10 00:27:01 -0500
commita19031411ddcc3d9a0cc79bef8ab17efb33ea8fd (patch)
treee44dc18b795655888cd56f837d5bd73edad2ae43
parentf83cf244cd27c7ef06f1852d1f3280fedfb19ae3 (diff)
downloadjson-c-a19031411ddcc3d9a0cc79bef8ab17efb33ea8fd.tar.gz
Remove the previously deprecated lh_table_lookup() function, in favor of lh_table_lookup_ex().
-rw-r--r--ChangeLog1
-rw-r--r--linkhash.c7
-rw-r--r--linkhash.h10
3 files changed, 1 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index c7ca51b..f5fee96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@ Deprecated and removed features:
--------------------------------
* bits.h has been removed
* lh_abort() has been removed
+* lh_table_lookup() has been removed, use lh_table_lookup_ex() instead.
0.13 (up to commit 5dae561, 2017/11/29)
diff --git a/linkhash.c b/linkhash.c
index 73691cd..7dddc36 100644
--- a/linkhash.c
+++ b/linkhash.c
@@ -621,13 +621,6 @@ struct lh_entry* lh_table_lookup_entry(struct lh_table *t, const void *k)
return lh_table_lookup_entry_w_hash(t, k, lh_get_hash(t, k));
}
-const void* lh_table_lookup(struct lh_table *t, const void *k)
-{
- void *result;
- lh_table_lookup_ex(t, k, &result);
- return result;
-}
-
json_bool lh_table_lookup_ex(struct lh_table* t, const void* k, void **v)
{
struct lh_entry *e = lh_table_lookup_entry(t, k);
diff --git a/linkhash.h b/linkhash.h
index 0f0e398..89ef3da 100644
--- a/linkhash.h
+++ b/linkhash.h
@@ -272,16 +272,6 @@ extern struct lh_entry* lh_table_lookup_entry(struct lh_table *t, const void *k)
extern struct lh_entry* lh_table_lookup_entry_w_hash(struct lh_table *t, const void *k, const unsigned long h);
/**
- * Lookup a record into the table.
- *
- * @param t the table to lookup
- * @param k a pointer to the key to lookup
- * @return a pointer to the found value or NULL if it does not exist.
- * @deprecated Use lh_table_lookup_ex() instead.
- */
-THIS_FUNCTION_IS_DEPRECATED(extern const void* lh_table_lookup(struct lh_table *t, const void *k));
-
-/**
* Lookup a record in the table.
*
* @param t the table to lookup