Skip to content

Commit

Permalink
Cleaned up some code: Some functions are no longer abstract instead t…
Browse files Browse the repository at this point in the history
…hey have to be overwritten if the should be used
  • Loading branch information
LMH01 committed May 23, 2021
1 parent a32f120 commit ced052f
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
public class AntiCheatSharer extends AbstractAdvancedSharer {
private static final Logger LOGGER = LoggerFactory.getLogger(AntiCheatSharer.class);

@Override
public void doOtherImportThings(String importFolderPath, String name) {

}

@Override
public void doOtherExportThings(String name, String exportFolderDataPath, Map<String, String> singleContentMap) {

}

@Override
public void printValues(Map<String, String> map, BufferedWriter bw) throws IOException {
TranslationManager.printLanguages(bw, map);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@
public class CopyProtectSharer extends AbstractAdvancedSharer {
private static final Logger LOGGER = LoggerFactory.getLogger(CopyProtectSharer.class);

@Override
public void doOtherImportThings(String importFolderPath, String name) {

}

@Override
public void doOtherExportThings(String name, String exportFolderDataPath, Map<String, String> singleContentMap) {

}

@Override
public void printValues(Map<String, String> map, BufferedWriter bw) throws IOException {
TranslationManager.printLanguages(bw, map);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ public String getOptionPaneMessage(Map<String, String> map) {
I18n.INSTANCE.get("commonText.tech") + ": " + map.get("TECH") + "\n";
}

@Override
public void doOtherImportThings(String importFolderPath, String name) {

}

@Override
public void doOtherExportThings(String name, String exportFolderDataPath, Map<String, String> singleContentMap) {

}

@Override
public void sendLogMessage(String string) {
LOGGER.info(string);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ public Map<String, String> getChangedImportMap(Map<String, String> map) {
return super.getChangedImportMap(map);
}

@Override
public void doOtherImportThings(String importFolderPath, String name) {

}

@Override
public void doOtherExportThings(String name, String exportFolderDataPath, Map<String, String> singleContentMap) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@

public class NpcEngineSharer extends AbstractAdvancedSharer {
private static final Logger LOGGER = LoggerFactory.getLogger(NpcEngineSharer.class);
@Override
public void doOtherImportThings(String importFolderPath, String name) {

}

@Override
public void doOtherExportThings(String name, String exportFolderDataPath, Map<String, String> singleContentMap) {

}

@Override
public void printValues(Map<String, String> map, BufferedWriter bw) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ public String importMod(String importFolderPath, boolean showMessages) throws IO
return "true";
}

@Override
public void doOtherImportThings(String importFolderPath, String name) {

}

@Override
public void doOtherExportThings(String name, String exportFolderDataPath, Map<String, String> singleContentMap) throws IOException {
File fileExportedPublisherIcon = new File(exportFolderDataPath + "//icon.png");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,16 @@ public Map<String, String> getChangedImportMap(Map<String, String> map){
/**
* Put things in this function that should be executed when the txt file has been imported.
*/
public abstract void doOtherImportThings(String importFolderPath, String name);
public void doOtherImportThings(String importFolderPath, String name){

}

/**
* Put things in this function that should be executed when the txt file has been exported.
*/
public abstract void doOtherExportThings(String name, String exportFolderDataPath, Map<String, String> singleContentMap) throws IOException;
public void doOtherExportThings(String name, String exportFolderDataPath, Map<String, String> singleContentMap) throws IOException{

}

/**
* Writes the values that are stored in the map to the file
Expand Down

0 comments on commit ced052f

Please sign in to comment.