Diff options
Diffstat (limited to 'source/filter.c')
| -rw-r--r-- | source/filter.c | 12 |
1 file changed, 1 insertion, 11 deletions
diff --git a/source/filter.c b/source/filter.c index 367074f..c33e9bc 100644 --- a/source/filter.c +++ b/source/filter.c @@ -263,19 +263,9 @@ static int script_html_url_arg(lua_State *lua_state) return emit_unfiltered(lua_state, html_url_arg); } -/* - * html_include returns whether it found the file, and calling it through a - * pointer that claims it returns nothing would be undefined, so the result is - * dropped in a wrapper of the right shape. - */ -static void include_and_discard_result(const char *filename) -{ - html_include(filename); -} - static int script_html_include(lua_State *lua_state) { - return emit_unfiltered(lua_state, include_and_discard_result); + return emit_unfiltered(lua_state, html_include); } static const struct { |
