# HG changeset patch # User jbe # Date 1447632111 -3600 # Node ID 4b1d88f77ab80041679b3902808b95a3274b1a29 # Parent 1625fd9051687679606e703972b2baadd3963dc8 Removed wrongly committed lines diff -r 1625fd905168 -r 4b1d88f77ab8 libraries/mondelefant/mondelefant_native.c --- a/libraries/mondelefant/mondelefant_native.c Mon Nov 16 00:19:53 2015 +0100 +++ b/libraries/mondelefant/mondelefant_native.c Mon Nov 16 01:01:51 2015 +0100 @@ -1636,38 +1636,6 @@ // get value of "_type" attribute: lua_getfield(L, 1, "_type"); // 5 result_type = lua_tostring(L, 5); - - - lua_settop(L, 3); - lua_pushnil(L); - lua_insert(L, 3); // optional document column name on stack position 3 - // try inherited attributes, methods or getter functions - // (and determine optional document column, if existent): - while (lua_toboolean(L, 4)) { // class on stack position 4 (due to insert) - lua_getfield(L, 4, "object"); // 5 - lua_pushvalue(L, 2); // 6 - lua_gettable(L, 5); // 6 - if (!lua_isnil(L, 6)) return 1; - lua_settop(L, 4); - lua_getfield(L, 4, "object_get"); // 5 - lua_pushvalue(L, 2); // 6 - lua_gettable(L, 5); // 6 - if (lua_toboolean(L, 6)) { - lua_pushvalue(L, 1); // 7 - lua_call(L, 1, 1); // 6 - return 1; - } - lua_settop(L, 4); - if (lua_isnil(L, 3)) { - lua_getfield(L, 4, "document_column"); // 5 - lua_replace(L, 3); - } - lua_pushliteral(L, "prototype"); // 5 - lua_rawget(L, 4); // 5 - lua_replace(L, 4); - } - lua_settop(L, 3); - // distinguish between lists and objects: if (result_type && !strcmp(result_type, "object")) { // objects lua_settop(L, 4);