Remove unused public method

This commit is contained in:
Horcrux
2017-01-16 14:38:43 +08:00
parent a981585b6b
commit 7c9f6b2d3d
11 changed files with 38 additions and 68 deletions

View File

@@ -1,9 +1,8 @@
import _ from 'lodash';
const merge = _.assign;
const merge = Object.assign;
function arrayDiffer(a, b) {
if (_.isNil(a) || _.isNil(b) ) {
/*eslint eqeqeq:0*/
if (a == null || b == null) {
return true;
}
if (a.length !== b.length) {
@@ -22,11 +21,10 @@ function fontDiffer(a, b) {
return false;
}
if (a.fontSize !== b.fontSize || a.fontFamily !== b.fontFamily || a.fontStyle !== b.fontStyle || a.fontWeight !== b.fontWeight) {
return true;
}
return false;
return a.fontSize !== b.fontSize ||
a.fontFamily !== b.fontFamily ||
a.fontStyle !== b.fontStyle ||
a.fontWeight !== b.fontWeight;
}
const ViewBoxAttributes = {