Remove unused variable in latest test

This commit is contained in:
Sei Lisa 2024-05-25 14:42:40 +02:00
parent d70c914738
commit 1d1aba9687
2 changed files with 8 additions and 10 deletions

View file

@ -2,19 +2,17 @@ default{timer(){
integer ia = llGetUnixTime();
integer ib = llGetUnixTime();
integer ic = -5;
integer id = ia*2;
integer ie = -ic*ia;
integer id = -ic*ia;
float fa = llGetTime();
float fb = llGetTime();
float fc = -5.5;
float fd = fa*2;
float fe = -fc*fa;
float fd = -fc*fa;
// FIXME: This is broken in the output module.
// The output should parenthesize the first two factors in the products,
// just as they are in the source. Fortunately they are equivalent.
// FIXME: The output is not optimal.
// It would suffice to add a space without parenthesizing the --ia,
// just like in the source.
llOwnerSay((string)[(- --ia*ib)*ib, (-++ia*ib)*ib, --ia*ib, ie]);
llOwnerSay((string)[(- --fa*fb)*fb, (-++fa*fb)*fb, --fa*fb, fe]);
llOwnerSay((string)[(- --ia*ib)*ib, (-++ia*ib)*ib, --ia*ib, id]);
llOwnerSay((string)[(- --fa*fb)*fb, (-++fa*fb)*fb, --fa*fb, fd]);
}}

View file

@ -4,11 +4,11 @@ default
{
integer ia = llGetUnixTime();
integer ib = llGetUnixTime();
integer ie = -(-5) * ia;
integer id = -(-5) * ia;
float fa = llGetTime();
float fb = llGetTime();
float fe = -(-5.5) * fa;
llOwnerSay((string)[-(--ia) * ib * ib, -++ia * ib * ib, (--ia) * ib, ie]);
llOwnerSay((string)[-(--fa) * fb * fb, -++fa * fb * fb, (--fa) * fb, fe]);
float fd = -(-5.5) * fa;
llOwnerSay((string)[-(--ia) * ib * ib, -++ia * ib * ib, (--ia) * ib, id]);
llOwnerSay((string)[-(--fa) * fb * fb, -++fa * fb * fb, (--fa) * fb, fd]);
}
}