Skip to content

Commit

Permalink
Chore: remove unused helper method from indent (#8901)
Browse files Browse the repository at this point in the history
  • Loading branch information
not-an-aardvark authored and gyandeeps committed Jul 9, 2017
1 parent 11ffe6b commit 9f95a3e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/rules/indent.js
Expand Up @@ -386,18 +386,6 @@ class OffsetStorage {
getFirstDependency(token) {
return this.desiredOffsets[token.range[0]].from;
}

/**
* Increases the offset for a token from its parent by the given amount
* @param {Token} token The token whose offset should be increased
* @param {number} amount The number of indent levels that the offset should increase by
* @returns {void}
*/
increaseOffset(token, amount) {
const currentOffsetInfo = this.desiredOffsets[token.range[0]];

this.desiredOffsets[token.range[0]] = { offset: currentOffsetInfo.offset + amount, from: currentOffsetInfo.from };
}
}

const ELEMENT_LIST_SCHEMA = {
Expand Down

0 comments on commit 9f95a3e

Please sign in to comment.