Remove RegistryHook (#18134)

Adapt to core change #4568.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich 2025-01-26 15:46:27 +01:00 committed by GitHub
parent 09cf1b15af
commit 3457f50112
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 20 deletions

View File

@ -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<Item> hook) {
}
@Override
public void removeRegistryHook(RegistryHook<Item> hook) {
}
}

View File

@ -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<Item> hook) {
throw new UnsupportedOperationException();
}
@Override
public void removeRegistryHook(RegistryHook<Item> hook) {
throw new UnsupportedOperationException();
}
}, UNIT_PROVIDER, localEndpointOverride);
service.activate(null, config);