mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
Remove unused _scaleStacked cache (#7494)
This commit is contained in:
parent
0b3ef9c1a6
commit
41f0f12af8
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user