Browse Source

Removed duplicate and unused code

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
a487a7bd2f
  1. 8
      src/engine/objects/Guild.java

8
src/engine/objects/Guild.java

@ -59,8 +59,6 @@ public class Guild extends AbstractWorldObject {
private int cityUUID = 0; private int cityUUID = 0;
private int mineTime; private int mineTime;
private ArrayList<PlayerCharacter> banishList; private ArrayList<PlayerCharacter> banishList;
private ArrayList<PlayerCharacter> characterKOSList;
private ArrayList<Guild> guildKOSList;
private ArrayList<Guild> allyList = new ArrayList<>(); private ArrayList<Guild> allyList = new ArrayList<>();
private ArrayList<Guild> enemyList = new ArrayList<>(); private ArrayList<Guild> enemyList = new ArrayList<>();
private ArrayList<Guild> recommendList = new ArrayList<>(); private ArrayList<Guild> recommendList = new ArrayList<>();
@ -83,8 +81,6 @@ public class Guild extends AbstractWorldObject {
this.leadershipType = leadershipType; this.leadershipType = leadershipType;
this.banishList = new ArrayList<>(); this.banishList = new ArrayList<>();
this.characterKOSList = new ArrayList<>();
this.guildKOSList = new ArrayList<>();
this.allyList = new ArrayList<>(); this.allyList = new ArrayList<>();
this.enemyList = new ArrayList<>(); this.enemyList = new ArrayList<>();
this.subGuildList = new ArrayList<>(); this.subGuildList = new ArrayList<>();
@ -115,8 +111,6 @@ public class Guild extends AbstractWorldObject {
this.leadershipType = leadershipType; this.leadershipType = leadershipType;
this.banishList = new ArrayList<>(); this.banishList = new ArrayList<>();
this.characterKOSList = new ArrayList<>();
this.guildKOSList = new ArrayList<>();
this.allyList = new ArrayList<>(); this.allyList = new ArrayList<>();
this.enemyList = new ArrayList<>(); this.enemyList = new ArrayList<>();
this.subGuildList = new ArrayList<>(); this.subGuildList = new ArrayList<>();
@ -871,8 +865,6 @@ public class Guild extends AbstractWorldObject {
//possible runAfterLoad being called twice?!?! //possible runAfterLoad being called twice?!?!
this.banishList = dbGuildHandler.GET_GUILD_BANISHED(this.getObjectUUID()); this.banishList = dbGuildHandler.GET_GUILD_BANISHED(this.getObjectUUID());
this.characterKOSList = DbManager.GuildQueries.GET_GUILD_KOS_CHARACTER(this.getObjectUUID());
this.guildKOSList = DbManager.GuildQueries.GET_GUILD_KOS_GUILD(this.getObjectUUID());
this.allyList.clear(); this.allyList.clear();
this.enemyList.clear(); this.enemyList.clear();

Loading…
Cancel
Save