From b90552b9ca851bf8567acca5176597e6f316a68f Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 6 Nov 2019 04:13:40 -0800 Subject: [PATCH] Remove check that is always true (#6701) --- src/core/core.scale.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 6cc8b3ab3..d5529aa00 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -1012,11 +1012,6 @@ var Scale = Element.extend({ for (i = 0; i < ticksLength; ++i) { tick = ticks[i] || {}; - // autoskipper skipped this tick (#4635) - if (isNullOrUndef(tick.label) && i < ticks.length) { - continue; - } - if (i === me.zeroLineIndex && options.offset === offsetGridLines) { // Draw the first index specially lineWidth = gridLines.zeroLineWidth; @@ -1103,11 +1098,6 @@ var Scale = Element.extend({ tick = ticks[i]; label = tick.label; - // autoskipper skipped this tick (#4635) - if (isNullOrUndef(label)) { - continue; - } - pixel = me.getPixelForTick(tick._index || i) + optionTicks.labelOffset; font = tick.major ? fonts.major : fonts.minor; lineHeight = font.lineHeight; -- 2.47.2