MCPcopy Create free account
hub / github.com/Card-Forge/forge / erase

Method erase

forge-core/src/main/java/forge/deck/io/DeckStorage.java:70–73  ·  view source on GitHub ↗
(final Deck unit)

Source from the content-addressed store, hash-verified

68 }
69
70 @Override
71 public void erase(final Deck unit) {
72 this.makeFileFor(unit).delete();
73 }
74
75 public File makeFileFor(final Deck deck) {
76 return new File(this.directory, deck.getBestFileName() + FILE_EXTENSION);

Callers

nothing calls this directly

Calls 2

makeFileForMethod · 0.95
deleteMethod · 0.65

Tested by

no test coverage detected