summaryrefslogtreecommitdiffhomepage
path: root/src/html-error.c
diff options
context:
space:
mode:
authorGreg <gmp@wow.st>2016-12-27 12:23:51 -0500
committerGreg <gmp@wow.st>2016-12-27 12:23:51 -0500
commitfdb1aae3a98d94da90b2ee36bd5ae4423e3b213b (patch)
tree16973c4b6b975cd6849845afb5133102c78cd690 /src/html-error.c
parent540069551da7a9c56874e568c449cfa3d72e4af4 (diff)
Move lookup_variable into hashmap.c / hashmap.h
Diffstat (limited to 'src/html-error.c')
-rw-r--r--src/html-error.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/html-error.c b/src/html-error.c
index 640ac53..38adf85 100644
--- a/src/html-error.c
+++ b/src/html-error.c
@@ -84,27 +84,6 @@ static char *get_html_file (unsigned int errornum)
}
/*
- * Look up the value for a variable.
- */
-static char *lookup_variable (hashmap_t map, const char *varname)
-{
- hashmap_iter result_iter;
- char *key;
- char *data;
-
- result_iter = hashmap_find (map, varname);
-
- if (hashmap_is_end (map, result_iter))
- return (NULL);
-
- if (hashmap_return_entry (map, result_iter,
- &key, (void **) &data) < 0)
- return (NULL);
-
- return (data);
-}
-
-/*
* Send an already-opened file to the client with variable substitution.
*/
int