diff --git a/app/src/main/java/de/danoeh/antennapod/config/CastCallbacksImpl.java b/app/src/main/java/de/danoeh/antennapod/config/CastCallbacksImpl.java deleted file mode 100644 index b92544201..000000000 --- a/app/src/main/java/de/danoeh/antennapod/config/CastCallbacksImpl.java +++ /dev/null @@ -1,20 +0,0 @@ -package de.danoeh.antennapod.config; - -import android.app.Activity; -import android.content.Context; -import android.content.Intent; - -import de.danoeh.antennapod.activity.AudioplayerActivity; -import de.danoeh.antennapod.core.CastCallbacks; - -public class CastCallbacksImpl implements CastCallbacks { - @Override - public Class getCastActivity() { - return AudioplayerActivity.class; - } - - @Override - public Intent getCastActivityIntent(Context context) { - return new Intent(context, getCastActivity()); - } -} diff --git a/app/src/main/java/de/danoeh/antennapod/config/ClientConfigurator.java b/app/src/main/java/de/danoeh/antennapod/config/ClientConfigurator.java index 154b10cb3..932b9d22f 100644 --- a/app/src/main/java/de/danoeh/antennapod/config/ClientConfigurator.java +++ b/app/src/main/java/de/danoeh/antennapod/config/ClientConfigurator.java @@ -16,6 +16,5 @@ public class ClientConfigurator { ClientConfig.playbackServiceCallbacks = new PlaybackServiceCallbacksImpl(); ClientConfig.flattrCallbacks = new FlattrCallbacksImpl(); ClientConfig.dbTasksCallbacks = new DBTasksCallbacksImpl(); - ClientConfig.castCallbacks = new CastCallbacksImpl(); } } diff --git a/core/src/main/java/de/danoeh/antennapod/core/CastCallbacks.java b/core/src/main/java/de/danoeh/antennapod/core/CastCallbacks.java deleted file mode 100644 index a2f17ba93..000000000 --- a/core/src/main/java/de/danoeh/antennapod/core/CastCallbacks.java +++ /dev/null @@ -1,16 +0,0 @@ -package de.danoeh.antennapod.core; - -import android.app.Activity; -import android.content.Context; -import android.content.Intent; - -/** - * Callbacks for the Cast features on the core module. - */ -public interface CastCallbacks { - - Class getCastActivity(); - - Intent getCastActivityIntent(Context context); - -} diff --git a/core/src/main/java/de/danoeh/antennapod/core/ClientConfig.java b/core/src/main/java/de/danoeh/antennapod/core/ClientConfig.java index 3dfd6ea65..9bbccbb82 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/ClientConfig.java +++ b/core/src/main/java/de/danoeh/antennapod/core/ClientConfig.java @@ -31,8 +31,6 @@ public class ClientConfig { public static DBTasksCallbacks dbTasksCallbacks; - public static CastCallbacks castCallbacks; - private static boolean initialized = false; public static synchronized void initialize(Context context) {