aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/intercopycontext.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp
index 4d3aaac..1b84641 100644
--- a/src/intercopycontext.cpp
+++ b/src/intercopycontext.cpp
@@ -330,7 +330,6 @@ void InterCopyContext::lookupNativeFunction() const
330 kLaneNameRegKey.pushValue(L2); // L1: ... f ... L2: {} f lane_name 330 kLaneNameRegKey.pushValue(L2); // L1: ... f ... L2: {} f lane_name
331 std::string_view const _to{ luaG_tostring(L2, -1) }; 331 std::string_view const _to{ luaG_tostring(L2, -1) };
332 lua_pop(L2, 1); // L2: {} f 332 lua_pop(L2, 1); // L2: {} f
333 // when mode_ == LookupMode::FromKeeper, L is a keeper state and L2 is not, therefore L2 is the state where we want to raise the error
334 raise_luaL_error( 333 raise_luaL_error(
335 getErrL(), 334 getErrL(),
336 "%s%s: function '%s' not found in %s destination transfer database.", 335 "%s%s: function '%s' not found in %s destination transfer database.",
@@ -342,21 +341,6 @@ void InterCopyContext::lookupNativeFunction() const
342 } 341 }
343 lua_remove(L2, -2); // L2: f 342 lua_remove(L2, -2); // L2: f
344 break; 343 break;
345
346 /* keep it in case I need it someday, who knows...
347 case LookupMode::RawFunctions:
348 {
349 int n;
350 char const* upname;
351 lua_CFunction f = lua_tocfunction( L, i);
352 // copy upvalues
353 for (n = 0; (upname = lua_getupvalue( L, i, 1 + n)) != nullptr; ++ n) {
354 luaG_inter_move( U, L, L2, 1, mode_); // L2: [up[,up ...]]
355 }
356 lua_pushcclosure( L2, f, n); // L2:
357 }
358 break;
359 */
360 } 344 }
361 STACK_CHECK(L2, 1); 345 STACK_CHECK(L2, 1);
362} 346}