Skip to content

Commit b780dde

Browse files
committed
🔪 obsolete sortBasePlotModules
... no need for this now that we have redrawReglTraces
1 parent 6abb2ff commit b780dde

File tree

3 files changed

+0
-49
lines changed

3 files changed

+0
-49
lines changed

src/plots/plots.js

-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ var Color = require('../components/color');
2020
var BADNUM = require('../constants/numerical').BADNUM;
2121

2222
var axisIDs = require('../plots/cartesian/axis_ids');
23-
var sortBasePlotModules = require('./sort_modules').sortBasePlotModules;
2423

2524
var animationAttrs = require('./animation_attributes');
2625
var frameAttrs = require('./frame_attributes');
@@ -487,9 +486,6 @@ plots.supplyDefaults = function(gd, opts) {
487486
if(!skipUpdateCalc && oldCalcdata.length === newFullData.length) {
488487
plots.supplyDefaultsUpdateCalc(oldCalcdata, newFullData);
489488
}
490-
491-
// sort base plot modules for consistent ordering
492-
newFullLayout._basePlotModules.sort(sortBasePlotModules);
493489
};
494490

495491
plots.supplyDefaultsUpdateCalc = function(oldCalcdata, newFullData) {

src/plots/sort_modules.js

-25
This file was deleted.

test/jasmine/tests/plots_test.js

-20
Original file line numberDiff line numberDiff line change
@@ -153,26 +153,6 @@ describe('Test Plots', function() {
153153

154154
testSanitizeMarginsHasBeenCalledOnlyOnce(gd);
155155
});
156-
157-
it('should sort base plot modules on fullLayout object', function() {
158-
var gd = Lib.extendDeep({}, require('@mocks/plot_types.json'));
159-
gd.data.unshift({type: 'scattergl'});
160-
gd.data.push({type: 'splom'});
161-
162-
supplyAllDefaults(gd);
163-
var names = gd._fullLayout._basePlotModules.map(function(m) {
164-
return m.name;
165-
});
166-
167-
expect(names).toEqual([
168-
'splom',
169-
'cartesian',
170-
'gl3d',
171-
'geo',
172-
'pie',
173-
'ternary'
174-
]);
175-
});
176156
});
177157

178158
describe('Plots.supplyLayoutGlobalDefaults should', function() {

0 commit comments

Comments
 (0)