Skip to content

Commit 2a8abd5

Browse files
committed
Remove unused variable
1 parent 7a0beb2 commit 2a8abd5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/types/checker/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import {
2323
} from '../types/primitives'
2424
import { createArrayType } from '../typeFactories/arrayFactory'
2525
import { ClassImpl } from '../types/classes'
26+
import { Method } from '../types/methods'
2627
import { Frame } from './environment'
2728
import { addClassesToFrame, resolveClassRelationships } from './prechecks'
28-
import { Method } from '../types/methods'
2929

3030
export type Result = {
3131
currentType: Type | null
@@ -405,7 +405,6 @@ export const typeCheckBody = (node: Node, frame: Frame = Frame.globalFrame()): R
405405
})
406406
if (errors.length > 0) return newResult(null, errors)
407407

408-
let numConstructorDeclarations = 0
409408
let numFieldDeclarations = 0
410409
let numMethodDeclarations = 0
411410
for (let i = 0; i < node.classBody.length; i++) {
@@ -486,7 +485,6 @@ export const typeCheckBody = (node: Node, frame: Frame = Frame.globalFrame()): R
486485
}
487486
}
488487

489-
if (bodyDeclaration.kind === 'ConstructorDeclaration') numConstructorDeclarations += 1
490488
if (bodyDeclaration.kind === 'FieldDeclaration') numFieldDeclarations += 1
491489
if (bodyDeclaration.kind === 'MethodDeclaration') numMethodDeclarations += 1
492490
}

0 commit comments

Comments
 (0)