Skip to content

Commit 14021d3

Browse files
authored
Remove unused layouts.defaults (#7264)
* Remove unused layouts.defaults * Add to migration guide
1 parent 807aea1 commit 14021d3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/getting-started/v3-migration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ The following properties and methods were removed:
221221
* `helpers.scaleMerge`
222222
* `helpers.where`
223223

224+
#### Layout
225+
226+
* `Layout.defaults`
227+
224228
#### Scales
225229

226230
* `LogarithmicScale.minNotZero`

src/core/core.layouts.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ defaults.set('layout', {
230230
// Scales, Legends and Plugins all rely on the layout service and can easily register to be placed anywhere they need
231231
// It is this service's responsibility of carrying out that layout.
232232
export default {
233-
defaults: {},
234233

235234
/**
236235
* Register a box to a chart.

test/specs/core.layouts.tests.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ describe('Chart.layouts', function() {
66
it('should be exposed through Chart.layouts', function() {
77
expect(Chart.layouts).toBeDefined();
88
expect(typeof Chart.layouts).toBe('object');
9-
expect(Chart.layouts.defaults).toBeDefined();
109
expect(Chart.layouts.addBox).toBeDefined();
1110
expect(Chart.layouts.removeBox).toBeDefined();
1211
expect(Chart.layouts.configure).toBeDefined();

0 commit comments

Comments
 (0)