Browse Source

gluon-web: remove unnecessary template_lualib.h

Matthias Schiffer 6 years ago
parent
commit
0ff4761a57
2 changed files with 6 additions and 31 deletions
  1. 6 1
      package/gluon-web/src/template_lualib.c
  2. 0 30
      package/gluon-web/src/template_lualib.h

+ 6 - 1
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)
 {

+ 0 - 30
package/gluon-web/src/template_lualib.h

@@ -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