 -    } else {
 -      return null;
      }
-+
-+    return result;
++      return result;
    }
  
    /**

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

 
     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);
