Remove unused code

This commit is contained in:
magicismight
2017-09-24 15:59:18 +08:00
parent f32800bfbd
commit 7f88436332

View File

@@ -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 !== '';
}