mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-02 19:22:58 +00:00
Removed an unused variable: cachedSearchResults.
It is polluting the global namespace. Seven years ago this line was added and even then the variable wasn't being used but it was a local variable so would have been hard to spot unless a linter should catch things like that. Then some four years ago it was accidently converted to a global variable because the line above it ended in a semicolon rather than a comma. 'use strict' didn't exist at the time this file was created and hasn't been added in general yet.
This commit is contained in:
1 parent
d0cd976246
commit
a0f6b815e8
1 file changed
-1
@@ -475,7 +475,6 @@ Executable.fileExecutableSearcherForURL = function(/*CFURL*/ referenceURL)
|
||||
var referenceURLString = referenceURL.absoluteString(),
|
||||
cachedFileExecutableSearcher = cachedFileExecutableSearchers[referenceURLString],
|
||||
aFilenameTranslateDictionary = Executable.filenameTranslateDictionary ? Executable.filenameTranslateDictionary() : null;
|
||||
cachedSearchResults = { };
|
||||
|
||||
if (!cachedFileExecutableSearcher)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user