From 182675447f930b918dae2d9ce3ffd4f470b49c9d Mon Sep 17 00:00:00 2001 From: David Sansome Date: Mon, 23 Nov 2026 13:18:44 +1100 Subject: [PATCH] Remove dead preference keys, VendingKey, ClementineElement, and stale logs Drops unused SP_SHOW_TRACKNO and crash-stacktrace preference keys, deletes obsolete VendingKey and ClementineElement classes, and cleans up stale Tasker bundle logs and comments. --- .../SharedPreferencesKeys.java | 6 ---- .../qspool/clementineremote/VendingKey.java | 29 ------------------- .../backend/elements/ClementineElement.java | 24 --------------- .../utils/bundle/Constants.java | 3 +- .../utils/bundle/PluginBundleManager.java | 2 +- 5 files changed, 2 insertions(+), 62 deletions(-) delete mode 100644 app/src/main/java/de/qspool/clementineremote/VendingKey.java delete mode 100644 app/src/main/java/de/qspool/clementineremote/backend/elements/ClementineElement.java diff --git a/app/src/main/java/de/qspool/clementineremote/SharedPreferencesKeys.java b/app/src/main/java/de/qspool/clementineremote/SharedPreferencesKeys.java index c59d7fad..4308eb73 100644 --- a/app/src/main/java/de/qspool/clementineremote/SharedPreferencesKeys.java +++ b/app/src/main/java/de/qspool/clementineremote/SharedPreferencesKeys.java @@ -39,8 +39,6 @@ public class SharedPreferencesKeys { public final static String SP_LAST_AUTH_CODE = "last_auth_code"; - public final static String SP_SHOW_TRACKNO = "pref_show_trackno"; - public final static String SP_LASTFM = "pref_show_lastfm"; public final static String SP_KEEP_SCREEN_ON = "pref_keep_screen_on"; @@ -76,10 +74,6 @@ public class SharedPreferencesKeys { public final static String SP_DOWNLOAD_PLAYLIST_CRT_ALBUM_DIR = "pref_dl_album_dir"; - public final static String SP_LAST_STACKTRACE = "last_stacktrace"; - - public final static String SP_LAST_SEND_STACKTRACE = "last_send_stacktrace"; - public final static String SP_LIBRARY_IP = "library_ip"; public final static String SP_KNOWN_IP = "known_ips"; diff --git a/app/src/main/java/de/qspool/clementineremote/VendingKey.java b/app/src/main/java/de/qspool/clementineremote/VendingKey.java deleted file mode 100644 index 3f3243bf..00000000 --- a/app/src/main/java/de/qspool/clementineremote/VendingKey.java +++ /dev/null @@ -1,29 +0,0 @@ -/* This file is part of the Android Clementine Remote. - * Copyright (C) 2013, Andreas Muttscheller - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . -*/ - -package de.qspool.clementineremote; - - -public class VendingKey { - - private final static String VENDING_KEY - = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmx5ft92HIVayAYhiFLFIge3LVwl8kDW8i+Cl9Z4XUtUhy5jZfO79mih16rX/AHjgzJyN0HngkVLEakKFyQXDwp+iiOUkyQTysjF6Q8/uqvAr+t/HKI9hHTlco5r/kULvT9YkkFzdeB09KF0PhCDnRURkGaFun799OBhKpOjvrcRwGs5kX6vaJS4MP9q6c+9W0RF3IHgATQ3CN23DXW+4PbxrK2ogNZdX1wz+ZYkXHfwNsmr/k/+Wmj9v1dN8HwS5vKEHXInUEQwmbM5iA+EnN/g+CYFkGTNPlVvLKZbYA6h4rAVk20pRhnu1OrCklOj2Hwv5HAROSLYGB4Y1qQVcgQIDAQAB"; - - public static String getVendingKey() { - return VENDING_KEY; - } -} diff --git a/app/src/main/java/de/qspool/clementineremote/backend/elements/ClementineElement.java b/app/src/main/java/de/qspool/clementineremote/backend/elements/ClementineElement.java deleted file mode 100644 index 4765dbe3..00000000 --- a/app/src/main/java/de/qspool/clementineremote/backend/elements/ClementineElement.java +++ /dev/null @@ -1,24 +0,0 @@ -/* This file is part of the Android Clementine Remote. - * Copyright (C) 2013, Andreas Muttscheller - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . -*/ - -package de.qspool.clementineremote.backend.elements; - -public class ClementineElement { - - ClementineElement() { - } -} diff --git a/app/src/main/java/de/qspool/clementineremote/utils/bundle/Constants.java b/app/src/main/java/de/qspool/clementineremote/utils/bundle/Constants.java index 426b6d95..1af2fd76 100644 --- a/app/src/main/java/de/qspool/clementineremote/utils/bundle/Constants.java +++ b/app/src/main/java/de/qspool/clementineremote/utils/bundle/Constants.java @@ -25,8 +25,7 @@ public final class Constants /** * Log tag for logcat messages. */ - // TODO: Change this to your application's own log tag. - public static final String LOG_TAG = "ToastSetting"; //$NON-NLS-1$ + public static final String LOG_TAG = "ClementineTasker"; //$NON-NLS-1$ /** * Flag to enable logcat messages. diff --git a/app/src/main/java/de/qspool/clementineremote/utils/bundle/PluginBundleManager.java b/app/src/main/java/de/qspool/clementineremote/utils/bundle/PluginBundleManager.java index 072aef70..b5a8f643 100644 --- a/app/src/main/java/de/qspool/clementineremote/utils/bundle/PluginBundleManager.java +++ b/app/src/main/java/de/qspool/clementineremote/utils/bundle/PluginBundleManager.java @@ -86,7 +86,7 @@ public static boolean isBundleValid(final Bundle bundle) if (Constants.IS_LOGGABLE) { Log.e(Constants.LOG_TAG, - String.format("bundle must contain 2 keys, but currently contains %d keys: %s", bundle.keySet().size(), bundle.keySet())); //$NON-NLS-1$ + String.format("bundle must contain 5 keys, but currently contains %d keys: %s", bundle.keySet().size(), bundle.keySet())); //$NON-NLS-1$ } return false; }