Skip to content

Commit f84d295

Browse files
committed
Removing unused variable from parent call command
1 parent 9096afd commit f84d295

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Commands/Insert Call to Parent.tmCommand

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ $startToken = false;
1818
1919
// Find the first token that's on/after TM_LINE_NUMBER
2020
for ($x = 0; $x < $numTokens; $x++) {
21-
$token = $tokens[$x];
22-
2321
if (is_array($tokens[$x]) && $tokens[$x][2] >= $seekLine) {
2422
$startToken = $x;
2523
break;
@@ -36,9 +34,7 @@ $functionName = false;
3634
3735
// Work backwards until we find the function declaration
3836
for ($x = $startToken; $x >= 0; $x--) {
39-
$token = $tokens[$x];
40-
41-
if (is_array($token) && T_FUNCTION === $tokens[$x][0]) {
37+
if (is_array($tokens[$x]) && T_FUNCTION === $tokens[$x][0]) {
4238
// Try to find a function name, which may not exist if this is a closure
4339
for ($y = $x + 1; $y < $numTokens; $y++) {
4440
if (is_array($tokens[$y])) {

0 commit comments

Comments
 (0)