webmcp

changeset 379:4b1d88f77ab8

Removed wrongly committed lines
author jbe
date Mon Nov 16 01:01:51 2015 +0100 (2015-11-16)
parents 1625fd905168
children 16baed4c0483
files libraries/mondelefant/mondelefant_native.c
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_native.c	Mon Nov 16 00:19:53 2015 +0100
     1.2 +++ b/libraries/mondelefant/mondelefant_native.c	Mon Nov 16 01:01:51 2015 +0100
     1.3 @@ -1636,38 +1636,6 @@
     1.4    // get value of "_type" attribute:
     1.5    lua_getfield(L, 1, "_type");  // 5
     1.6    result_type = lua_tostring(L, 5);
     1.7 -
     1.8 -
     1.9 -    lua_settop(L, 3);
    1.10 -    lua_pushnil(L);
    1.11 -    lua_insert(L, 3);  // optional document column name on stack position 3
    1.12 -    // try inherited attributes, methods or getter functions
    1.13 -    // (and determine optional document column, if existent):
    1.14 -    while (lua_toboolean(L, 4)) {  // class on stack position 4 (due to insert)
    1.15 -      lua_getfield(L, 4, "object");  // 5
    1.16 -      lua_pushvalue(L, 2);  // 6
    1.17 -      lua_gettable(L, 5);  // 6
    1.18 -      if (!lua_isnil(L, 6)) return 1;
    1.19 -      lua_settop(L, 4);
    1.20 -      lua_getfield(L, 4, "object_get");  // 5
    1.21 -      lua_pushvalue(L, 2);  // 6
    1.22 -      lua_gettable(L, 5);  // 6
    1.23 -      if (lua_toboolean(L, 6)) {
    1.24 -        lua_pushvalue(L, 1);  // 7
    1.25 -        lua_call(L, 1, 1);  // 6
    1.26 -        return 1;
    1.27 -      }
    1.28 -      lua_settop(L, 4);
    1.29 -      if (lua_isnil(L, 3)) {
    1.30 -        lua_getfield(L, 4, "document_column");  // 5
    1.31 -        lua_replace(L, 3);
    1.32 -      }
    1.33 -      lua_pushliteral(L, "prototype");  // 5
    1.34 -      lua_rawget(L, 4);  // 5
    1.35 -      lua_replace(L, 4);
    1.36 -    }
    1.37 -    lua_settop(L, 3);
    1.38 -
    1.39    // distinguish between lists and objects:
    1.40    if (result_type && !strcmp(result_type, "object")) {  // objects
    1.41      lua_settop(L, 4);

Impressum / About Us