From 9f95a3e54f371167a1ca78691bc498c095340b71 Mon Sep 17 00:00:00 2001 From: Teddy Katz Date: Sat, 8 Jul 2017 18:31:29 -0700 Subject: [PATCH] Chore: remove unused helper method from `indent` (#8901) --- lib/rules/indent.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/rules/indent.js b/lib/rules/indent.js index 8739c58d05b..99608ad519d 100644 --- a/lib/rules/indent.js +++ b/lib/rules/indent.js @@ -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 = {