diff --git a/src/com/google/javascript/jscomp/GlobalNamespace.java b/src/com/google/javascript/jscomp/GlobalNamespace.java
index <HASH>..<HASH> 100644
--- a/src/com/google/javascript/jscomp/GlobalNamespace.java
+++ b/src/com/google/javascript/jscomp/GlobalNamespace.java
@@ -266,16 +266,6 @@ class GlobalNamespace
     return v != null && !v.isLocal();
   }
 
-  /**
-   * Gets whether a scope is the global scope.
-   *
-   * @param s A scope
-   * @return Whether the scope is the global scope
-   */
-  private static boolean isGlobalScope(Scope s) {
-    return s.getParent() == null;
-  }
-
   // -------------------------------------------------------------------------
 
   /**
@@ -420,7 +410,7 @@ class GlobalNamespace
       }
 
       if (isSet) {
-        if (isGlobalScope(scope)) {
+        if (scope.isGlobal()) {
           handleSetFromGlobal(module, scope, n, parent, name, isPropAssign, type);
         } else {
           handleSetFromLocal(module, scope, n, parent, name);
Small cleanup to remove unnecessary method.
-------------
Created by MOE: <URL>