From 9bc55c7ceeb230c427df34dfee68ca77884e0d12 Mon Sep 17 00:00:00 2001 From: Bilal Alsharifi Date: Wed, 2 Sep 2020 16:43:50 -0400 Subject: Remove deprecated code from some transport classes --- .../com/smartdevicelink/transport/RouterServiceValidator.java | 5 ----- .../com/smartdevicelink/transport/SdlBroadcastReceiver.java | 5 ----- .../java/com/smartdevicelink/transport/TransportBroker.java | 5 ----- .../transport/utl/ByteArrayMessageSpliter.java | 11 ----------- 4 files changed, 26 deletions(-) (limited to 'android/sdl_android/src/main/java') diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/transport/RouterServiceValidator.java b/android/sdl_android/src/main/java/com/smartdevicelink/transport/RouterServiceValidator.java index f86caa699..0cc4cf853 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/transport/RouterServiceValidator.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/transport/RouterServiceValidator.java @@ -638,11 +638,6 @@ public class RouterServiceValidator { return createTrustedListRequest(context,forceRefresh,null,listCallback); } - @Deprecated - protected static boolean createTrustedListRequest(final Context context, boolean forceRefresh,HttpRequestTask.HttpRequestTaskCallback cb ){ - return createTrustedListRequest(context,forceRefresh,cb,null); - } - protected static boolean createTrustedListRequest(final Context context, boolean forceRefresh,HttpRequestTask.HttpRequestTaskCallback cb, final TrustedListCallback listCallback ){ if(context == null){ return false; diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlBroadcastReceiver.java b/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlBroadcastReceiver.java index 1ad6a3e9a..a12fcb590 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlBroadcastReceiver.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlBroadcastReceiver.java @@ -462,11 +462,6 @@ public abstract class SdlBroadcastReceiver extends BroadcastReceiver{ * @param context A context to access Android system services through. If null is passed, this will always return false * @param callback Use this callback to find out if the router service is connected or not. */ - @Deprecated - public static void requestTransportStatus(Context context, final SdlRouterStatusProvider.ConnectedStatusCallback callback){ - requestTransportStatus(context,callback,false, true); - } - private static void requestTransportStatus(Context context, final SdlRouterStatusProvider.ConnectedStatusCallback callback, final boolean triggerRouterServicePing, final boolean lookForServices){ if(context == null){ if(callback!=null){ diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/transport/TransportBroker.java b/android/sdl_android/src/main/java/com/smartdevicelink/transport/TransportBroker.java index acf84462f..3851ab563 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/transport/TransportBroker.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/transport/TransportBroker.java @@ -752,11 +752,6 @@ public class TransportBroker { /** * Use this method to let the router service know that you are requesting a new session from the head unit. */ - @Deprecated - public void requestNewSession() { - requestNewSession(null); - } - public void requestNewSession(TransportRecord transportRecord) { Message msg = Message.obtain(); msg.what = TransportConstants.ROUTER_REQUEST_NEW_SESSION; diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/transport/utl/ByteArrayMessageSpliter.java b/android/sdl_android/src/main/java/com/smartdevicelink/transport/utl/ByteArrayMessageSpliter.java index c7333fb08..9ab93aea9 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/transport/utl/ByteArrayMessageSpliter.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/transport/utl/ByteArrayMessageSpliter.java @@ -68,17 +68,6 @@ public class ByteArrayMessageSpliter { this.priorityCoef = priorityCoef; } - @Deprecated - public ByteArrayMessageSpliter(Long appId,int what, byte[] bytes, int priorityCoef){ - this.appId = appId+""; - this.what = what; - stream = new ByteArrayInputStream(bytes); - orginalSize = stream.available(); - bytesRead = 0; - firstPacket = true; - this.priorityCoef = priorityCoef; - } - public void setRouterServiceVersion(int version){ this.routerServiceVersion = version; } -- cgit v1.2.1