From 4c994e6e550a2fc048e33d5ebcf73af0ec5ce803 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 20 Oct 2023 08:06:40 -0400 Subject: [PATCH] Removed old method --- src/engine/db/handlers/dbBuildingHandler.java | 31 ------------------- 1 file changed, 31 deletions(-) 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();