Skip to content

Commit

Permalink
Remove RegistryHook (openhab#18134)
Browse files Browse the repository at this point in the history
Adapt to core change openhab#4568.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
  • Loading branch information
holgerfriedrich authored Jan 26, 2025
1 parent 09cf1b1 commit 3457f50
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
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
Expand Down Expand Up @@ -150,12 +149,4 @@ public <T extends Item> Collection<T> getItemsByTag(Class<T> typeFilter, String.
}
return put;
}

@Override
public void addRegistryHook(RegistryHook<Item> hook) {
}

@Override
public void removeRegistryHook(RegistryHook<Item> hook) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
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;
Expand Down Expand Up @@ -298,16 +297,6 @@ public <T extends Item> Collection<T> getItemsByTag(Class<T> typeFilter, String.
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);
Expand Down

0 comments on commit 3457f50

Please sign in to comment.