diff --git a/src/engine/db/handlers/dbBuildingHandler.java b/src/engine/db/handlers/dbBuildingHandler.java index 21a20fe6..375dbf17 100644 --- a/src/engine/db/handlers/dbBuildingHandler.java +++ b/src/engine/db/handlers/dbBuildingHandler.java @@ -512,37 +512,6 @@ public class dbBuildingHandler extends dbHandlerBase { } } - public ArrayList LOAD_PATROL_POINTS(Building building) { - - if (building == null) - return null; - - ArrayList patrolPoints = new ArrayList<>(); - - try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `dyn_building_patrol_points` WHERE `buildingUID` = ?")) { - - preparedStatement.setInt(1, building.getObjectUUID()); - - - ResultSet rs = preparedStatement.executeQuery(); - - while (rs.next()) { - float x1 = rs.getFloat("patrolX"); - float y1 = rs.getFloat("patrolY"); - float z1 = rs.getFloat("patrolZ"); - Vector3fImmutable patrolPoint = new Vector3fImmutable(x1, y1, z1); - patrolPoints.add(patrolPoint); - } - - } catch (SQLException e) { - Logger.error(e); - } - - return patrolPoints; - - } - public boolean ADD_TO_CONDEMNLIST(final long parentUID, final long playerUID, final long guildID, final int friendType) { try (Connection connection = DbManager.getConnection();