Skip to content

Commit

Permalink
Remove convertOneStopGradients plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkenny54 committed Oct 19, 2024
1 parent ccb7cbe commit bcc9594
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 254 deletions.
11 changes: 0 additions & 11 deletions docs/04-plugins/convertOneStopGradients.mdx

This file was deleted.

2 changes: 0 additions & 2 deletions lib/builtin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import * as collapseGroups from '../plugins/collapseGroups.js';
import * as combinePaths from '../plugins/combinePaths.js';
import * as combineStyleElements from '../plugins/combineStyleElements.js';
import * as convertEllipseToCircle from '../plugins/convertEllipseToCircle.js';
import * as convertOneStopGradients from '../plugins/convertOneStopGradients.js';
import * as convertPathData from '../plugins/convertPathData.js';
import * as convertShapeToPath from '../plugins/convertShapeToPath.js';
import * as convertStyleToAttrs from '../plugins/convertStyleToAttrs.js';
Expand Down Expand Up @@ -82,7 +81,6 @@ export const builtin = Object.freeze([
collapseGroups,
combinePaths,
convertEllipseToCircle,
convertOneStopGradients,
convertPathData,
convertShapeToPath,
convertStyleToAttrs,
Expand Down
10 changes: 1 addition & 9 deletions lib/xast.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { selectAll, selectOne, is } from 'css-select';
import { selectAll, is } from 'css-select';
import xastAdaptor from './svgo/css-select-adapter.js';

/**
Expand All @@ -24,14 +24,6 @@ export const querySelectorAll = (node, selector) => {
return selectAll(selector, node, cssSelectOptions);
};

/**
* @type {(node: XastNode, selector: string) => ?XastChild}
* @deprecated
*/
export const querySelector = (node, selector) => {
return selectOne(selector, node, cssSelectOptions);
};

/**
* @type {(node: XastChild, selector: string) => boolean}
* @deprecated
Expand Down
166 changes: 0 additions & 166 deletions plugins/convertOneStopGradients.js

This file was deleted.

1 change: 0 additions & 1 deletion plugins/plugins-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ export type BuiltinsWithOptionalParams = DefaultPlugins & {
convertToPx?: boolean;
};
cleanupXlink: void;
convertOneStopGradients: void;
convertStyleToAttrs: {
keepImportant?: boolean;
};
Expand Down
23 changes: 0 additions & 23 deletions test/plugins/convertOneStopGradients.01.svg.txt

This file was deleted.

21 changes: 0 additions & 21 deletions test/plugins/convertOneStopGradients.02.svg.txt

This file was deleted.

21 changes: 0 additions & 21 deletions test/plugins/convertOneStopGradients.03.svg.txt

This file was deleted.

0 comments on commit bcc9594

Please sign in to comment.