diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/AbstractBTBRDeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/AbstractBTBRDeviceSupport.java index b9a0539301..ac44d9550d 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/AbstractBTBRDeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/AbstractBTBRDeviceSupport.java @@ -131,17 +131,6 @@ public abstract class AbstractBTBRDeviceSupport extends AbstractDeviceSupport im return (mQueue != null) && mQueue.isConnected(); } - /// @deprecated use {@link TransactionBuilder#queueConnected()} - @Deprecated - public void performConnected(Transaction transaction) throws IOException { - if (!isConnected()) { - if (!connect()) { - throw new IOException("2: Unable to connect to device: " + getDevice()); - } - } - getQueue().add(transaction); - } - BtBRQueue getQueue() { return mQueue; } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/TransactionBuilder.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/TransactionBuilder.java index 1b60a5d096..99cc1eb528 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/TransactionBuilder.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btbr/TransactionBuilder.java @@ -95,16 +95,6 @@ public class TransactionBuilder { return this; } - /** - * @deprecated use {@link #setDeviceState(GBDevice.State)} - */ - @Deprecated - @NonNull - public TransactionBuilder setUpdateState(@NonNull GBDevice device, GBDevice.State state, @NonNull Context context) { - BtBRAction action = new SetDeviceStateAction(device, state, context); - return add(action); - } - /// Sets the device's state and sends an {@link GBDevice#ACTION_DEVICE_CHANGED} intent @NonNull public TransactionBuilder setDeviceState(GBDevice.State state) { @@ -112,14 +102,6 @@ public class TransactionBuilder { return add(action); } - /// @deprecated use {@link #setProgress(int, boolean, int)} - @Deprecated - @NonNull - public TransactionBuilder setProgress(@StringRes int textRes, boolean ongoing, int percentage, @NonNull Context context) { - BtBRAction action = new SetProgressAction(textRes, ongoing, percentage, context); - return add(action); - } - /// updates the progress bar /// @see SetProgressAction#SetProgressAction @NonNull @@ -128,15 +110,6 @@ public class TransactionBuilder { return add(action); } - /// @deprecated use {@link #setBusyTask(int)} - @Deprecated - @NonNull - public TransactionBuilder setBusyTask(@NonNull final GBDevice device, @StringRes final int taskName, - @NonNull final Context context) { - BtBRAction action = new SetDeviceBusyAction(device, taskName, context); - return add(action); - } - /// Set the device as busy or not ({@code taskName = 0}). /// @see SetDeviceBusyAction#SetDeviceBusyAction @NonNull @@ -155,12 +128,6 @@ public class TransactionBuilder { mTransaction.setCallback(callback); } - /// @deprecated use {@link #queue()} - @Deprecated - public void queue(BtBRQueue queue) { - queue(); - } - /** * To be used as the final step to execute the transaction by the queue. * @throws IllegalStateException if this builder has already been queued diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/AbstractBTLEMultiDeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/AbstractBTLEMultiDeviceSupport.java index ae49232362..08144dfaa9 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/AbstractBTLEMultiDeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/AbstractBTLEMultiDeviceSupport.java @@ -274,26 +274,6 @@ public abstract class AbstractBTLEMultiDeviceSupport extends AbstractBTLEDeviceS return createTransactionBuilder(taskName, deviceIdx); } - /// @deprecated use {@link TransactionBuilder#queueConnected()} - @Deprecated - public void performConnected(Transaction transaction, int deviceIdx) throws IOException { - if (!isConnected()) { - if (!connect()) { - throw new IOException("2: Unable to connect to device: " + getDevice(deviceIdx)); - } - } - getQueue(deviceIdx).add(transaction); - } - - /// @deprecated use {@link TransactionBuilder#queueImmediately()} - @Deprecated - public void performImmediately(TransactionBuilder builder, int deviceIdx) throws IOException { - if (!isConnected()) { - throw new IOException("Not connected to device: " + getDevice()); - } - getQueue(deviceIdx).insert(builder.getTransaction()); - } - /** * Subclasses should call this method to add services they support. * Only supported services will be queried for characteristics. diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/AbstractBTLEOperation.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/AbstractBTLEOperation.java index 79431b6a0c..5ba8d35d72 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/AbstractBTLEOperation.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/AbstractBTLEOperation.java @@ -112,12 +112,6 @@ public abstract class AbstractBTLEOperation