Skip to content

Commit c20fbd6

Browse files
committed
remove unused code
1 parent ecb2ca1 commit c20fbd6

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

src/util.js

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function getAllMatches(string, regex) {
2121
return matches;
2222
}
2323

24-
export const isName = function(string) {
24+
export const isName = function (string) {
2525
const match = regexName.exec(string);
2626
return !(match === null || typeof match === 'undefined');
2727
}
@@ -34,35 +34,10 @@ export function isEmptyObject(obj) {
3434
return Object.keys(obj).length === 0;
3535
}
3636

37-
/**
38-
* Copy all the properties of a into b.
39-
* @param {*} target
40-
* @param {*} a
41-
*/
42-
export function merge(target, a, arrayMode) {
43-
if (a) {
44-
const keys = Object.keys(a); // will return an array of own properties
45-
const len = keys.length; //don't make it inline
46-
for (let i = 0; i < len; i++) {
47-
if (arrayMode === 'strict') {
48-
target[keys[i]] = [ a[keys[i]] ];
49-
} else {
50-
target[keys[i]] = a[keys[i]];
51-
}
52-
}
53-
}
54-
}
55-
/* exports.merge =function (b,a){
56-
return Object.assign(b,a);
57-
} */
58-
5937
export function getValue(v) {
6038
if (exports.isExist(v)) {
6139
return v;
6240
} else {
6341
return '';
6442
}
6543
}
66-
67-
// const fakeCall = function(a) {return a;};
68-
// const fakeCallNoReturn = function() {};

0 commit comments

Comments
 (0)