Skip to content

Commit 2711e4c

Browse files
committed
Remove dead code
1 parent 3626c0f commit 2711e4c

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ import memoize from "micro-memoize";
55

66
const PREFIX = "@media";
77

8-
function isObject(obj) {
9-
return typeof obj === "object" && obj !== null;
10-
}
11-
128
function isMediaQuery(str) {
139
return typeof str === "string" && str.indexOf(PREFIX) === 0;
1410
}
@@ -48,11 +44,6 @@ export function process(obj) {
4844

4945
const mqKeys = mFilterMq(obj);
5046
let res = mFilterNonMq(obj);
51-
52-
if (!mqKeys.length) {
53-
return res;
54-
}
55-
5647
const matchObject = getMatchObject();
5748

5849
mqKeys.forEach(key => {

src/perf-tests/current.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ import memoize from "micro-memoize";
44

55
const PREFIX = "@media";
66

7-
function isObject(obj) {
8-
return typeof obj === "object" && obj !== null;
9-
}
10-
117
function isMediaQuery(str) {
128
return typeof str === "string" && str.indexOf(PREFIX) === 0;
139
}
@@ -48,10 +44,6 @@ export function process(obj, matchObject, Platform) {
4844
const mqKeys = mFilterMq(obj);
4945
let res = mFilterNonMq(obj);
5046

51-
if (!mqKeys.length) {
52-
return res;
53-
}
54-
5547
mqKeys.forEach(key => {
5648
if (/^@media\s+(ios|android)/i.test(key)) {
5749
matchObject.type = Platform.OS;

0 commit comments

Comments
 (0)