mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-04 11:24:10 +01:00
Remove RegistryHook (#18134)
Adapt to core change #4568. Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
parent
09cf1b15af
commit
3457f50112
@ -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) {
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user