From 3457f50112f4a1b6a0c2c34718212a9702d1e010 Mon Sep 17 00:00:00 2001 From: Holger Friedrich Date: Sun, 26 Jan 2025 15:46:27 +0100 Subject: [PATCH] Remove RegistryHook (#18134) Adapt to core change #4568. Signed-off-by: Holger Friedrich --- .../internal/rest/mocks/DummyItemRegistry.java | 9 --------- .../dynamodb/internal/BaseIntegrationTest.java | 11 ----------- 2 files changed, 20 deletions(-) diff --git a/bundles/org.openhab.io.hueemulation/src/test/java/org/openhab/io/hueemulation/internal/rest/mocks/DummyItemRegistry.java b/bundles/org.openhab.io.hueemulation/src/test/java/org/openhab/io/hueemulation/internal/rest/mocks/DummyItemRegistry.java index d8e55cf7cc9..97b8db7966d 100644 --- a/bundles/org.openhab.io.hueemulation/src/test/java/org/openhab/io/hueemulation/internal/rest/mocks/DummyItemRegistry.java +++ b/bundles/org.openhab.io.hueemulation/src/test/java/org/openhab/io/hueemulation/internal/rest/mocks/DummyItemRegistry.java @@ -25,7 +25,6 @@ import org.openhab.core.common.registry.RegistryChangeListener; import org.openhab.core.items.Item; import org.openhab.core.items.ItemNotFoundException; import org.openhab.core.items.ItemRegistry; -import org.openhab.core.items.RegistryHook; /** * @author David Graeff - Initial contribution @@ -150,12 +149,4 @@ public class DummyItemRegistry implements ItemRegistry { } return put; } - - @Override - public void addRegistryHook(RegistryHook hook) { - } - - @Override - public void removeRegistryHook(RegistryHook hook) { - } } diff --git a/bundles/org.openhab.persistence.dynamodb/src/test/java/org/openhab/persistence/dynamodb/internal/BaseIntegrationTest.java b/bundles/org.openhab.persistence.dynamodb/src/test/java/org/openhab/persistence/dynamodb/internal/BaseIntegrationTest.java index 7c55fa72ebc..4db1ad895b0 100644 --- a/bundles/org.openhab.persistence.dynamodb/src/test/java/org/openhab/persistence/dynamodb/internal/BaseIntegrationTest.java +++ b/bundles/org.openhab.persistence.dynamodb/src/test/java/org/openhab/persistence/dynamodb/internal/BaseIntegrationTest.java @@ -44,7 +44,6 @@ import org.openhab.core.items.Item; import org.openhab.core.items.ItemNotFoundException; import org.openhab.core.items.ItemNotUniqueException; import org.openhab.core.items.ItemRegistry; -import org.openhab.core.items.RegistryHook; import org.openhab.core.library.items.CallItem; import org.openhab.core.library.items.ColorItem; import org.openhab.core.library.items.ContactItem; @@ -298,16 +297,6 @@ public class BaseIntegrationTest extends JavaTest { public @Nullable Item remove(String itemName, boolean recursive) { throw new UnsupportedOperationException(); } - - @Override - public void addRegistryHook(RegistryHook hook) { - throw new UnsupportedOperationException(); - } - - @Override - public void removeRegistryHook(RegistryHook hook) { - throw new UnsupportedOperationException(); - } }, UNIT_PROVIDER, localEndpointOverride); service.activate(null, config);