From dec7c8482afedfb82c19bd48c5799483cc6c9b4b Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sat, 31 Oct 2015 22:05:01 -0400 Subject: [PATCH] remove unused code --- src/utils/testForSideEffects.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/utils/testForSideEffects.js b/src/utils/testForSideEffects.js index 6251c83..aeb2413 100644 --- a/src/utils/testForSideEffects.js +++ b/src/utils/testForSideEffects.js @@ -50,16 +50,6 @@ export default function testForSideEffects ( node, scope, statement, strongDepen hasSideEffect = true; } - if ( !declaration || declaration.isExternal ) { - // we're calling a global or an external function. Assume side-effects - hasSideEffect = true; - } - - // we're calling a function defined in this bundle - else if ( declaration.testForSideEffects( strongDependencies ) ) { - hasSideEffect = true; - } - // TODO does function mutate inputs that are needed? }