Remove unused local variables (#10528)
Fixes 26 SAT UnusedLocalVariable findings Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -23,7 +23,6 @@ import java.util.stream.Stream;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.openhab.binding.miele.internal.handler.MieleBridgeHandler.DeviceClassObject;
|
||||
import org.openhab.binding.miele.internal.handler.MieleBridgeHandler.DeviceMetaData;
|
||||
import org.openhab.binding.miele.internal.handler.MieleBridgeHandler.DeviceOperation;
|
||||
import org.openhab.binding.miele.internal.handler.MieleBridgeHandler.DeviceProperty;
|
||||
import org.openhab.binding.miele.internal.handler.MieleBridgeHandler.HomeDevice;
|
||||
import org.openhab.core.thing.Bridge;
|
||||
@@ -162,15 +161,6 @@ public abstract class MieleApplianceHandler<E extends Enum<E> & ApplianceChannel
|
||||
// Ignore - this is due to an unrecognized and not yet reverse-engineered array property
|
||||
}
|
||||
}
|
||||
|
||||
for (JsonElement operation : dco.Operations.getAsJsonArray()) {
|
||||
try {
|
||||
DeviceOperation devop = gson.fromJson(operation, DeviceOperation.class);
|
||||
DeviceMetaData pmd = gson.fromJson(devop.Metadata, DeviceMetaData.class);
|
||||
} catch (Exception p) {
|
||||
// Ignore - this is due to an unrecognized and not yet reverse-engineered array property
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user