Skip to content

Commit 8db7eda

Browse files
committed
Merge pull request livecode#2960 from peter-b/cleanup/unused-variable
libscript: Remove unused t_arg_types from MCScriptPerformForeignInvoke()
2 parents 5f83234 + d22be78 commit 8db7eda

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

libscript/src/script-instance.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,6 @@ static bool MCScriptPerformForeignInvoke(MCScriptFrame*& x_frame, MCScriptInstan
12291229
MCHandlerTypeFieldMode t_modes[16];
12301230
MCResolvedTypeInfo t_types[16];
12311231
void *t_args[16];
1232-
ffi_type *t_arg_types[16];
12331232
bool t_arg_new[16];
12341233
MCScriptStackStorage t_invoke_storage;
12351234

@@ -1427,23 +1426,19 @@ static bool MCScriptPerformForeignInvoke(MCScriptFrame*& x_frame, MCScriptInstan
14271426
{
14281427
// In mode arguments are the value themselves.
14291428
t_args[t_arg_index] = t_argument;
1430-
t_arg_types[t_arg_index] = (ffi_type *)MCForeignTypeInfoGetLayoutType(t_types[t_arg_index] . type);
14311429
}
14321430
else
14331431
{
14341432
// Allocate space for the storage pointer
14351433
t_args[t_arg_index] = t_invoke_storage.Allocate(sizeof(void *));
14361434
*(void **)t_args[t_arg_index] = t_argument;
1437-
t_arg_types[t_arg_index] = &ffi_type_pointer;
14381435
}
14391436
}
14401437
else
14411438
{
14421439
// Out mode arguments are the contents for foreign values but
14431440
// marked 'pointer' type. However, for valuerefs we must make storage
14441441
// to put the valueref in.
1445-
t_arg_types[t_arg_index] = &ffi_type_pointer;
1446-
14471442
if (t_descriptor != nil)
14481443
{
14491444
// Allocate space for the storage pointer

0 commit comments

Comments
 (0)