Merge pull request #3566 from jridgewell/patch-1
Remove unused Position#unshift
This commit is contained in:
@@ -25,18 +25,4 @@ export default class Position {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unshift a string from the current position, mantaining the current line and column.
|
||||
*/
|
||||
|
||||
unshift(str: string): void {
|
||||
for (let i = 0; i < str.length; i++) {
|
||||
if (str[i] === "\n") {
|
||||
this.line--;
|
||||
} else {
|
||||
this.column--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user