Remove unused _scaleStacked cache (#7494)

This commit is contained in:
Jukka Kurkela 2020-06-13 00:55:51 +03:00 committed by GitHub
parent 0b3ef9c1a6
commit 41f0f12af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,6 @@ export default class DatasetController {
this._parsing = false;
this._data = undefined;
this._objectData = undefined;
this._scaleStacked = {};
this.initialize();
}
@ -661,21 +660,6 @@ export default class DatasetController {
return values;
}
/**
* @private
*/
_cacheScaleStackStatus() {
const me = this;
const meta = me._cachedMeta;
const iScale = meta.iScale;
const vScale = meta.vScale;
const cache = me._scaleStacked = {};
if (iScale && vScale) {
cache[iScale.id] = iScale.options.stacked;
cache[vScale.id] = vScale.options.stacked;
}
}
/**
* @return {number|boolean}
* @protected
@ -710,7 +694,6 @@ export default class DatasetController {
me._cachedDataOpts = {};
me.update(mode);
meta._clip = toClip(valueOrDefault(me._config.clip, defaultClip(meta.xScale, meta.yScale, me.getMaxOverflow())));
me._cacheScaleStackStatus();
}
/**