mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
[YAML thing provider] Remove unsued and unneeded variable "modelLoaded" (#5362)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
+1
-7
@@ -43,7 +43,6 @@ import org.openhab.core.i18n.LocaleProvider;
|
||||
import org.openhab.core.model.yaml.YamlModelListener;
|
||||
import org.openhab.core.service.ReadyMarker;
|
||||
import org.openhab.core.service.ReadyService;
|
||||
import org.openhab.core.service.StartLevelService;
|
||||
import org.openhab.core.thing.Channel;
|
||||
import org.openhab.core.thing.ChannelUID;
|
||||
import org.openhab.core.thing.Thing;
|
||||
@@ -126,8 +125,6 @@ public class YamlThingProvider extends AbstractProvider<Thing>
|
||||
}
|
||||
};
|
||||
|
||||
private boolean modelLoaded = false;
|
||||
|
||||
private @Nullable Thread lazyRetryThread;
|
||||
|
||||
private record QueueContent(ThingHandlerFactory thingHandlerFactory, ThingTypeUID thingTypeUID,
|
||||
@@ -259,10 +256,7 @@ public class YamlThingProvider extends AbstractProvider<Thing>
|
||||
|
||||
@Override
|
||||
public void onReadyMarkerAdded(ReadyMarker readyMarker) {
|
||||
String type = readyMarker.getType();
|
||||
if (StartLevelService.STARTLEVEL_MARKER_TYPE.equals(type)) {
|
||||
modelLoaded = Integer.parseInt(readyMarker.getIdentifier()) >= StartLevelService.STARTLEVEL_MODEL;
|
||||
} else if (XML_THING_TYPE.equals(type)) {
|
||||
if (XML_THING_TYPE.equals(readyMarker.getType())) {
|
||||
String bsn = readyMarker.getIdentifier();
|
||||
loadedXmlThingTypes.add(bsn);
|
||||
thingHandlerFactories.stream().filter(factory -> bsn.equals(getBundleName(factory))).forEach(factory -> {
|
||||
|
||||
Reference in New Issue
Block a user