From 9ed75efad10263cb59477bbe2529651bd14e2817 Mon Sep 17 00:00:00 2001 From: Xavier Mamano Date: Sat, 3 Dec 2011 18:32:26 +0100 Subject: [PATCH] don't use errors-pending-to-fix.js --- .../closure-compiler/errors-pending-to-fix.js | 22 ------------------- tools/closure.py | 1 - 2 files changed, 23 deletions(-) delete mode 100644 build/closure-compiler/errors-pending-to-fix.js diff --git a/build/closure-compiler/errors-pending-to-fix.js b/build/closure-compiler/errors-pending-to-fix.js deleted file mode 100644 index f345e96970..0000000000 --- a/build/closure-compiler/errors-pending-to-fix.js +++ /dev/null @@ -1,22 +0,0 @@ -// ******************************************** -// This source file serves *ONLY* to avoid some compilation errors when the -// compiler uses the flag: -// --jscomp_error undefinedVars -// -// In this source are declared all undefined variables pending to fix. This -// temporarily prevents undefined variable error for these names. -// -// NOTE: The compiler does not include externs files like this in the -// compilation result. -// ******************************************** - -/* Ticket: #2971 */ -// ../lib/OpenLayers/Layer/KaMapCache.js:91: ERROR - variable DEFAULT_FORMAT is undefined -var DEFAULT_FORMAT; -// ../lib/OpenLayers/Layer/KaMapCache.js:121: ERROR - variable paramsString is undefined -var paramsString; - -/* Ticket: #3593 - see: http://code.google.com/p/xmlhttprequest/issues/detail?id=34 */ -// ../lib/OpenLayers/Request/XMLHttpRequest.js:252: ERROR - variable oRequest is undefined -var oRequest; diff --git a/tools/closure.py b/tools/closure.py index 217f577855..1f788edb5d 100644 --- a/tools/closure.py +++ b/tools/closure.py @@ -16,7 +16,6 @@ def minimize(code): os.system(("java -jar %s --js %s --js_output_file %s" + " --externs closure-compiler/Externs.js" + - " --externs closure-compiler/errors-pending-to-fix.js" + " --jscomp_warning checkVars" + " --jscomp_error checkRegExp" + " --jscomp_error undefinedVars") % (path, ntf.name, ntf2.name))