=== modified file 'uc_store/uc_store.module'
--- uc_store/uc_store.module	2009-01-27 18:10:23 +0000
+++ uc_store/uc_store.module	2009-02-02 22:31:17 +0000
@@ -1768,23 +1768,10 @@
 }
 
 // Wrapper for drupal_add_js() to cache .js files based on their timestamp.
+// Deprecated! Use drupal_add_js() instead.
 function uc_add_js($data = NULL, $type = 'module', $scope = 'header', $defer = FALSE, $cache = TRUE) {
-  // If we're adding a module or theme .js file...
-  if (($type == 'module' || $type == 'theme') && $cache) {
-    // And the file actually exists...
-    if (file_exists($data)) {
-      // Add the file timestamp to the query so the browser-cached
-      // javascript is updated when the file is updated.
-      drupal_add_js($data .'?'. substr(filemtime($data), -5), $type, $scope, $defer, $cache);
-    }
-    else {
-      // Log a file not found to the watchdog.
-      watchdog('uc_store', 'Could not find JS file %path.', array('%path' => $data), WATCHDOG_ERROR);
-    }
-  }
-  else {
-    drupal_add_js($data, $type, $scope, $defer, $cache);
-  }
+  watchdog('uc_store', 'uc_add_js() has been deprecated. Use drupal_add_js() in your code.', array(), WATCHDOG_ERROR);
+  drupal_add_js($data, $type, $scope, $defer, $cache);
 }
 
 // Builds the version info reported to Ubercart.org.

