 +    if (decls == null) {
            return null;
 -        }
--      }
--
+       }
+ 
 -      return result;
 -    } else if (name.getType() == Token.OR || name.getType() == Token.HOOK) {
 -      Node firstVal;

-        firstVal = name.getFirstChild().getNext();
-      } else {
-        firstVal = name.getFirstChild();
       }
 
-      Collection<Definition> defs1 = getCallableDefinitions(definitionProvider,
-                                                            firstVal);
-      Collection<Definition> defs2 = getCallableDefinitions(definitionProvider,

 
     for (Node c = n.getFirstChild(); c != null; c = c.getNext()) {
diff --git a/src/com/google/javascript/jscomp/PureFunctionIdentifier.java b/src/com/google/javascript/jscomp/PureFunctionIdentifier.java
index 894d65ba..7063f67a 100644
--- a/src/com/google/javascript/jscomp/PureFunctionIdentifier.java
+++ b/src/com/google/javascript/jscomp/PureFunctionIdentifier.java
@@ -174,46 +174,27 @@ class PureFunctionIdentifier implements CompilerPass {
    */
   private static Collection<Definition> getCallableDefinitions(
       DefinitionProvider definitionProvider, Node name) {
-    if (NodeUtil.isGetProp(name) || NodeUtil.isName(name)) {
       List<Definition> result = Lists.newArrayList();
 
-      Collection<Definition> decls =
-          definitionProvider.getDefinitionsReferencedAt(name);
