From 0ff4761a574518a14e540b8ded4bc91626f4ccc1 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Thu, 22 Feb 2018 13:34:32 +0100
Subject: [PATCH] gluon-web: remove unnecessary template_lualib.h

---
 package/gluon-web/src/template_lualib.c |  7 +++++-
 package/gluon-web/src/template_lualib.h | 30 -------------------------
 2 files changed, 6 insertions(+), 31 deletions(-)
 delete mode 100644 package/gluon-web/src/template_lualib.h

diff --git a/package/gluon-web/src/template_lualib.c b/package/gluon-web/src/template_lualib.c
index b06a48571..7a19ba3c6 100644
--- a/package/gluon-web/src/template_lualib.c
+++ b/package/gluon-web/src/template_lualib.c
@@ -16,7 +16,12 @@
  *  limitations under the License.
  */
 
-#include "template_lualib.h"
+#include "template_parser.h"
+#include "template_utils.h"
+#include "template_lmo.h"
+
+#define TEMPLATE_LUALIB_META  "gluon.web.template.parser"
+
 
 static int template_L_do_parse(lua_State *L, struct template_parser *parser, const char *chunkname)
 {
diff --git a/package/gluon-web/src/template_lualib.h b/package/gluon-web/src/template_lualib.h
deleted file mode 100644
index ec0e17c86..000000000
--- a/package/gluon-web/src/template_lualib.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * LuCI Template - Lua library header
- *
- *   Copyright (C) 2009 Jo-Philipp Wich <jow@openwrt.org>
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-
-#ifndef _TEMPLATE_LUALIB_H_
-#define _TEMPLATE_LUALIB_H_
-
-#include "template_parser.h"
-#include "template_utils.h"
-#include "template_lmo.h"
-
-#define TEMPLATE_LUALIB_META  "gluon.web.template.parser"
-
-LUALIB_API int luaopen_gluon_web_template_parser(lua_State *L);
-
-#endif
-- 
GitLab