Skip to content

Commit 2d45d20

Browse files
committed
Remove obsolete code
1 parent 13c2549 commit 2d45d20

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/parser-styles.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,6 @@ export class StyleParser {
8484
}
8585
this._adjustAllNodes(root);
8686

87-
patchRoot(root, postcss);
8887
return root;
8988
}
9089
}
91-
92-
function patchRoot(root, syntax) {
93-
const originalToString = root.toString;
94-
try {
95-
Object.defineProperty(root, "toString", {
96-
configurable: true,
97-
enumerable: false,
98-
value(stringifier) {
99-
return originalToString.call(this, stringifier || syntax);
100-
},
101-
});
102-
} catch {
103-
// ignore
104-
}
105-
}

0 commit comments

Comments
 (0)