Skip to content

Commit

Permalink
Remove deprecated default methods (openhab#1667)
Browse files Browse the repository at this point in the history
Removes:

* ConfigOptionProvider.getParameterOptions(URI, String, Locale) (see also openhab#1541)
* DiscoveryListener.removeOlderResults(DiscoveryService, long, Collection<ThingTypeUID>)

Related to openhab#1408

Signed-off-by: Wouter Born <github@maindrain.net>
GitOrigin-RevId: d33598a
  • Loading branch information
wborn authored and splatch committed Jul 11, 2023
1 parent 1a10054 commit 86b8344
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,26 +57,6 @@ public interface DiscoveryListener {
*/
void thingRemoved(DiscoveryService source, ThingUID thingUID);

/**
* Removes all results belonging to one of the given types that are older
* than the given timestamp.
*
* @param source the discovery service which is the source of this event (not
* null)
* @param timestamp timestamp, all <b>older</b> results will be removed
* @param thingTypeUIDs collection of {@code ThingType}s, only results of these
* {@code ThingType}s will be removed; if {@code null} then
* {@link DiscoveryService#getSupportedThingTypes()} will be used
* instead
* @return collection of thing UIDs of all removed things
* @deprecated use {@link #removeOlderResults(DiscoveryService, long, Collection, ThingUID)} instead
*/
@Deprecated
default @Nullable Collection<ThingUID> removeOlderResults(DiscoveryService source, long timestamp,
@Nullable Collection<ThingTypeUID> thingTypeUIDs) {
return removeOlderResults(source, timestamp, thingTypeUIDs, null);
}

/**
* Removes all results belonging to one of the given types that are older
* than the given timestamp.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@
@NonNullByDefault
public interface ConfigOptionProvider {

@Deprecated
default @Nullable Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable Locale locale) {
return getParameterOptions(uri, param, null, locale);
}

/**
* Provides a collection of {@link ParameterOptions}s.
*
Expand Down

0 comments on commit 86b8344

Please sign in to comment.