MCPcopy Create free account
hub / github.com/MTrop/DoomTools / remove

Method remove

src/main/java/net/mtrop/doom/tools/struct/Loader.java:376–386  ·  view source on GitHub ↗

Removes a cached object from the cache, and clears a name from the error names set. @param name the name of the object to remove. @return true if the file was removed from cache, false if it was never cached.

(String name)

Source from the content-addressed store, hash-verified

374 * @return true if the file was removed from cache, false if it was never cached.
375 */
376 public boolean remove(String name)
377 {
378 synchronized (errorNames)
379 {
380 errorNames.remove(name);
381 }
382 synchronized (nameMap)
383 {
384 return nameMap.remove(name) != null;
385 }
386 }
387
388 /**
389 * Removes a set of cached objects from the cache, and clears the provided names from the error names set.

Callers 15

createProjectMethod · 0.45
releaseKeyMethod · 0.45
processDirectiveLineMethod · 0.45
setMethod · 0.45
reduceLeftMethod · 0.45
reduceRightMethod · 0.45
removeDriverMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected