diff --git a/iidm/iidm-api/src/main/java/com/powsybl/iidm/network/Equipments.java b/iidm/iidm-api/src/main/java/com/powsybl/iidm/network/Equipments.java deleted file mode 100644 index a204b34e63f..00000000000 --- a/iidm/iidm-api/src/main/java/com/powsybl/iidm/network/Equipments.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium) - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * SPDX-License-Identifier: MPL-2.0 - */ -package com.powsybl.iidm.network; - -/** - * - * @author Geoffroy Jamgotchian {@literal } - */ -public final class Equipments { - - private Equipments() { - } - - public record ConnectionInfo(Bus connectionBus, boolean connected) { - } - - /** - * @deprecated This method was introduced to provide a fallback to handle the very specific case where - * {@link com.powsybl.iidm.network.Terminal.BusBreakerView#getConnectableBus()} returned a null bus. This case is no - * longer possible, hence this method is now useless. - * You can use: - * - */ - @Deprecated(since = "6.7.0", forRemoval = true) - public static ConnectionInfo getConnectionInfoInBusBreakerView(Terminal t) { - Bus bus = t.getBusBreakerView().getBus(); - boolean connected; - if (bus != null) { - connected = true; - } else { - connected = false; - bus = t.getBusBreakerView().getConnectableBus(); - } - return new ConnectionInfo(bus, connected); - } - -}