Merge pull request #3566 from jridgewell/patch-1

Remove unused Position#unshift
This commit is contained in:
Logan Smyth
2016-07-06 19:13:53 -07:00
committed by GitHub

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