diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-04 09:21:15 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-04 09:21:15 +0200 |
commit | 3a86e1f2fde002199fff0ca4bb2ed4674b32ec8e (patch) | |
tree | a2e2f10dff1b6659fdc69f4ac205bbae6f9da604 /src/linda.cpp | |
parent | 2baf7a6e001951d08098149d80d7ce79e7035a16 (diff) | |
download | lanes-3a86e1f2fde002199fff0ca4bb2ed4674b32ec8e.tar.gz lanes-3a86e1f2fde002199fff0ca4bb2ed4674b32ec8e.tar.bz2 lanes-3a86e1f2fde002199fff0ca4bb2ed4674b32ec8e.zip |
Remove some useless compatibility stuff
Diffstat (limited to 'src/linda.cpp')
-rw-r--r-- | src/linda.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/linda.cpp b/src/linda.cpp index 2a31799..f1a99fd 100644 --- a/src/linda.cpp +++ b/src/linda.cpp | |||
@@ -461,10 +461,7 @@ LUAG_FUNC(linda_receive) | |||
461 | keeper_api_t _selected_keeper_receive{ nullptr }; | 461 | keeper_api_t _selected_keeper_receive{ nullptr }; |
462 | int _expected_pushed_min{ 0 }, _expected_pushed_max{ 0 }; | 462 | int _expected_pushed_min{ 0 }, _expected_pushed_max{ 0 }; |
463 | // are we in batched mode? | 463 | // are we in batched mode? |
464 | kLindaBatched.pushKey(L_); | 464 | if (kLindaBatched.equals(L_, -1)) { |
465 | int const _is_batched{ lua501_equal(L_, _key_i, -1) }; | ||
466 | lua_pop(L_, 1); | ||
467 | if (_is_batched) { | ||
468 | // no need to pass linda.batched in the keeper state | 465 | // no need to pass linda.batched in the keeper state |
469 | ++_key_i; | 466 | ++_key_i; |
470 | // make sure the keys are of a valid type | 467 | // make sure the keys are of a valid type |