Skip to content

Commit

Permalink
fix: removed a duplicated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Scoppio committed Nov 17, 2024
1 parent 8d3dc69 commit b5e561a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
5 changes: 0 additions & 5 deletions megamek/src/megamek/common/loaders/BLKFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -1180,11 +1180,6 @@ public static void encode(File file, Entity t) throws EntitySavingException {
blk.writeBlockFile(file);
}

public static void encode(File file, Entity t) throws EntitySavingException {
BuildingBlock blk = BLKFile.getBlock(t);
blk.writeBlockFile(file);
}

protected void addTransports(Entity e) throws EntityLoadingException {
if (dataFile.containsData("transporters")) {
String[] transporters = dataFile.getDataAsString("transporters");
Expand Down
12 changes: 0 additions & 12 deletions megamek/src/megamek/common/util/BuildingBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -491,18 +491,6 @@ public boolean writeBlockComment(String theComment) {
return true;
}


/**
* Writes the buildingBlock data to a file.
*
* @param fileName the full namepath of the file to write. Overwrites existing files.
* @return true on success.
*/
public boolean writeBlockFile(String fileName) {
File file = new File(fileName);
return writeBlockFile(file);
}

/**
* Writes the buildingBlock data to a file.
*
Expand Down

0 comments on commit b5e561a

Please sign in to comment.