summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_json.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/m_json.h')
-rw-r--r--plugins/MirLua/src/m_json.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/plugins/MirLua/src/m_json.h b/plugins/MirLua/src/m_json.h
index bb3a2e1568..1357505bec 100644
--- a/plugins/MirLua/src/m_json.h
+++ b/plugins/MirLua/src/m_json.h
@@ -1,29 +1,6 @@
#ifndef _LUA_M_JSON_H_
#define _LUA_M_JSON_H_
-#include <m_json.h>
-
-struct JSON
-{
- JSONNode *node;
- bool bDelete;
-
- JSON(JSONNode &refNode, bool bCopy = false)
- : node(bCopy ? json_copy(&refNode) : &refNode), bDelete(bCopy) { }
- JSON(JSONNode *n, bool bD = true)
- : node(n), bDelete(bD) { }
- ~JSON()
- {
- if (bDelete)
- json_delete(node);
- }
-
- __inline void* operator new(size_t size, lua_State *L)
- {
- return lua_newuserdata(L, size);
- }
-};
-
#define MT_JSON "JSON"
#define MLUA_JSON "m_json"