Skip to content

Commit 3457f50

Browse files
Remove RegistryHook (openhab#18134)
Adapt to core change openhab#4568. Signed-off-by: Holger Friedrich <[email protected]>
1 parent 09cf1b1 commit 3457f50

File tree

2 files changed

+0
-20
lines changed
  • bundles

2 files changed

+0
-20
lines changed

bundles/org.openhab.io.hueemulation/src/test/java/org/openhab/io/hueemulation/internal/rest/mocks/DummyItemRegistry.java

-9
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.openhab.core.items.Item;
2626
import org.openhab.core.items.ItemNotFoundException;
2727
import org.openhab.core.items.ItemRegistry;
28-
import org.openhab.core.items.RegistryHook;
2928

3029
/**
3130
* @author David Graeff - Initial contribution
@@ -150,12 +149,4 @@ public <T extends Item> Collection<T> getItemsByTag(Class<T> typeFilter, String.
150149
}
151150
return put;
152151
}
153-
154-
@Override
155-
public void addRegistryHook(RegistryHook<Item> hook) {
156-
}
157-
158-
@Override
159-
public void removeRegistryHook(RegistryHook<Item> hook) {
160-
}
161152
}

bundles/org.openhab.persistence.dynamodb/src/test/java/org/openhab/persistence/dynamodb/internal/BaseIntegrationTest.java

-11
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import org.openhab.core.items.ItemNotFoundException;
4545
import org.openhab.core.items.ItemNotUniqueException;
4646
import org.openhab.core.items.ItemRegistry;
47-
import org.openhab.core.items.RegistryHook;
4847
import org.openhab.core.library.items.CallItem;
4948
import org.openhab.core.library.items.ColorItem;
5049
import org.openhab.core.library.items.ContactItem;
@@ -298,16 +297,6 @@ public <T extends Item> Collection<T> getItemsByTag(Class<T> typeFilter, String.
298297
public @Nullable Item remove(String itemName, boolean recursive) {
299298
throw new UnsupportedOperationException();
300299
}
301-
302-
@Override
303-
public void addRegistryHook(RegistryHook<Item> hook) {
304-
throw new UnsupportedOperationException();
305-
}
306-
307-
@Override
308-
public void removeRegistryHook(RegistryHook<Item> hook) {
309-
throw new UnsupportedOperationException();
310-
}
311300
}, UNIT_PROVIDER, localEndpointOverride);
312301

313302
service.activate(null, config);

0 commit comments

Comments
 (0)