diff --git a/includes/registry.inc b/includes/registry.inc
index af432ff..e9d7602 100644
--- a/core/includes/registry.inc
+++ b/core/includes/registry.inc
@@ -51,9 +51,6 @@ function _registry_update() {
       }
     }
   }
-  foreach (file_scan_directory('includes', '/\.inc$/') as $filename => $file) {
-    $files["$filename"] = array('module' => '', 'weight' => 0);
-  }
 
   $transaction = db_transaction();
   try {
