summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/map.c16
-rw-r--r--src/map.h3
2 files changed, 0 insertions, 19 deletions
diff --git a/src/map.c b/src/map.c
index 0e2c190..24686b0 100644
--- a/src/map.c
+++ b/src/map.c
@@ -723,22 +723,6 @@ map_data_unset_map_entry(struct plugin_state *state,
}
}
-/* Remove the entry from the map which matches the passed-in key. */
-void
-map_data_unset_entry_key(struct plugin_state *state,
- const char *domain_name,
- const char *map_name,
- unsigned int key_len,
- const char *key)
-{
- struct map *map;
- struct map_entry *entry;
- map = map_data_find_map(state, domain_name, map_name);
- entry = map_data_find_map_entry(state, map, key_len, key);
- map_data_unset_map_entry(state, map, entry);
- map->last_changed = time(NULL);
-}
-
/* Remove the entry from the map which matches the passed-in ID. */
void
map_data_unset_entry_id(struct plugin_state *state,
diff --git a/src/map.h b/src/map.h
index e0ae03f..f7cb49d 100644
--- a/src/map.h
+++ b/src/map.h
@@ -74,9 +74,6 @@ void map_data_set_map(struct plugin_state *state,
const char *domain_name, const char *map_name,
bool_t secure,
void *backend_data, void (*free_backend_data)(void *p));
-void map_data_unset_entry_key(struct plugin_state *state,
- const char *domain_name, const char *map_name,
- unsigned int key_len, const char *key);
void map_data_unset_entry_id(struct plugin_state *state,
const char *domain_name, const char *map_name,
const char *id);