Skip to content

Commit

Permalink
Removing unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
rorticus committed May 5, 2017
1 parent 1d4a69f commit 0cc8292
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ declare const Packages: {} | undefined;
// a "program" to apply paths; see computeMapProg
let pathMapPrograms: DojoLoader.PathMap[] = [];

// hash: (mid | url)-->(function | string)
//
// Gives a set of cache modules pending entry into cache. When cached modules are published to the loader, they are
// entered into pendingCacheInsert; modules are then pressed into cache upon (1) AMD define or (2) upon receiving
// another independent set of cached modules. (1) is the usual case, and this case allows normalizing mids given
// in the pending cache for the local configuration, possibly relocating modules.
let pendingCacheInsert: { [moduleId: string]: any; } = {};

let setGlobals: (require: DojoLoader.RootRequire, define: DojoLoader.Define) => void;

let uidGenerator = 0;
Expand Down Expand Up @@ -850,7 +842,7 @@ declare const Packages: {} | undefined;

++waitingCount;
module.injected = true;
if ((cached = cache[module.mid]) || (module.mid in pendingCacheInsert)) {
if (cached = cache[module.mid]) {
try {
cached();
onLoadCallback();
Expand Down Expand Up @@ -1112,7 +1104,7 @@ declare const Packages: {} | undefined;
item = cacheModules[key];

cache[
typeof item === 'string' ? toUrl(key, undefined) : getModuleInformation(key, undefined).mid
getModuleInformation(key, undefined).mid
] = item;
}
}
Expand Down

0 comments on commit 0cc8292

Please sign in to comment.