Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
sequba committed Dec 2, 2023
1 parent e27d78a commit c2caac8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ArraySize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export class ArraySize {
public width: number,
public height: number,
public isRef: boolean = false,
) {}

public static fromArray<T>(array: T[][]): ArraySize {
return new ArraySize(array.length > 0 ? array[0].length : 0, array.length)
) {
if (width <= 0 || height <= 0) {
throw Error('Incorrect array size')
}
}

public static error() {
Expand Down

0 comments on commit c2caac8

Please sign in to comment.