Skip to content

Commit e6bd703

Browse files
committed
Remove unused active and type fields from plugins
1 parent f649eab commit e6bd703

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+0
-100
lines changed

plugins/addAttributesToSVGElement.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
'use strict';
22

33
exports.name = 'addAttributesToSVGElement';
4-
exports.type = 'visitor';
5-
exports.active = false;
64
exports.description = 'adds attributes to an outer <svg> element';
75

86
var ENOCLS = `Error in plugin "addAttributesToSVGElement": absent parameters.

plugins/addClassesToSVGElement.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
'use strict';
22

33
exports.name = 'addClassesToSVGElement';
4-
exports.type = 'visitor';
5-
exports.active = false;
64
exports.description = 'adds classnames to an outer <svg> element';
75

86
var ENOCLS = `Error in plugin "addClassesToSVGElement": absent parameters.

plugins/cleanupAttrs.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
'use strict';
22

33
exports.name = 'cleanupAttrs';
4-
exports.type = 'visitor';
5-
exports.active = true;
64
exports.description =
75
'cleanups attributes from newlines, trailing and repeating spaces';
86

plugins/cleanupEnableBackground.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
const { visit } = require('../lib/xast.js');
44

5-
exports.type = 'visitor';
65
exports.name = 'cleanupEnableBackground';
7-
exports.active = true;
86
exports.description =
97
'remove or cleanup enable-background attribute when possible';
108

plugins/cleanupIDs.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
const { visitSkip } = require('../lib/xast.js');
88
const { referencesProps } = require('./_collections.js');
99

10-
exports.type = 'visitor';
1110
exports.name = 'cleanupIDs';
12-
exports.active = true;
1311
exports.description = 'removes unused IDs and minifies used';
1412

1513
const regReferencesUrl = /\burl\(("|')?#(.+?)\1\)/;

plugins/cleanupListOfValues.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
const { removeLeadingZero } = require('../lib/svgo/tools.js');
44

55
exports.name = 'cleanupListOfValues';
6-
exports.type = 'visitor';
7-
exports.active = false;
86
exports.description = 'rounds list of values to the fixed precision';
97

108
const regNumericValues =

plugins/cleanupNumericValues.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
const { removeLeadingZero } = require('../lib/svgo/tools');
44

55
exports.name = 'cleanupNumericValues';
6-
exports.type = 'visitor';
7-
exports.active = true;
86
exports.description =
97
'rounds numeric values to the fixed precision, removes default ‘px’ units';
108

plugins/collapseGroups.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
const { inheritableAttrs, elemsGroups } = require('./_collections.js');
88

9-
exports.type = 'visitor';
109
exports.name = 'collapseGroups';
11-
exports.active = true;
1210
exports.description = 'collapses useless groups';
1311

1412
/**

plugins/convertColors.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
const collections = require('./_collections.js');
44

5-
exports.type = 'visitor';
65
exports.name = 'convertColors';
7-
exports.active = true;
86
exports.description = 'converts colors: rgb() to #rrggbb and #rrggbb to #rgb';
97

108
const rNumber = '([+-]?(?:\\d*\\.\\d+|\\d+\\.?)%?)';

plugins/convertEllipseToCircle.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
'use strict';
22

33
exports.name = 'convertEllipseToCircle';
4-
exports.type = 'visitor';
5-
exports.active = true;
64
exports.description = 'converts non-eccentric <ellipse>s to <circle>s';
75

86
/**

0 commit comments

Comments
 (0)