mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 06:15:15 +00:00
Remove unused code
This commit is contained in:
@@ -13,29 +13,15 @@ function transformToMatrix(props, transform) {
|
||||
return pooledMatrix.toArray();
|
||||
}
|
||||
|
||||
class TransformParser {
|
||||
constructor() {
|
||||
const floating = '(\\-?[\\d\\.e]+)';
|
||||
const commaSpace = '\\,?\\s*';
|
||||
const SPLIT_REGEX = /[\s*()|,]/;
|
||||
|
||||
this.regex = {
|
||||
split: /[\s*()|,]/,
|
||||
matrix: new RegExp(
|
||||
'^matrix\\(' +
|
||||
floating + commaSpace +
|
||||
floating + commaSpace +
|
||||
floating + commaSpace +
|
||||
floating + commaSpace +
|
||||
floating + commaSpace +
|
||||
floating + '\\)$')
|
||||
};
|
||||
}
|
||||
class TransformParser {
|
||||
|
||||
parse(transform) {
|
||||
if (transform) {
|
||||
const retval = {};
|
||||
let transLst = _.filter(
|
||||
transform.split(this.regex.split),
|
||||
transform.split(SPLIT_REGEX),
|
||||
(ele) => {
|
||||
return ele !== '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user