Remove unused Position#unshift

Not only is it unused, it'll break things if you push a newline since it doesn't set a new `#column` value.
This commit is contained in:
Justin Ridgewell 2016-07-06 21:58:02 -04:00 committed by GitHub
parent 193b9b5797
commit 9cdb24157e

View File

@ -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--;
}
}
}
}