remove unused code in preferences
@@ -23,12 +23,6 @@ public class SharedPreferencesManager {
private static final String DEFAULT_MODEL = Model.MobileNetV1_1_0_Q.toString();
private static final String MODEL = "MODEL_NAME";
- private static final String DEFAULT_MODEL_AUTOPILOT = Model.Autopilot_F.toString();
- private static final String MODEL_AUTOPILOT = "MODEL_NAME_AUTOPILOT";
-
- private static final String DEFAULT_MODEL_DETECTOR = Model.MobileNetV1_1_0_Q.toString();
- private static final String MODEL_DETECTOR = "MODEL_NAME_DETECTOR";
-
private static final String OBJECT_TYPE = "OBJECT_TYPE";
private static final String DEFAULT_OBJECT_TYPE = "person";
@@ -96,22 +90,6 @@ public class SharedPreferencesManager {
return preferences.getString(MODEL, DEFAULT_MODEL);
}
- public void setAutoPilotModel(String model) {
- preferences.edit().putString(MODEL_AUTOPILOT, model).apply();
- }
-
- public String getAutoPilotModel() {
- return preferences.getString(MODEL_AUTOPILOT, DEFAULT_MODEL_AUTOPILOT);
- }
-
- public void setDetectorModel(String model) {
- preferences.edit().putString(MODEL_DETECTOR, model).apply();
- }
-
- public String getDetectorModel() {
- return preferences.getString(MODEL_DETECTOR, DEFAULT_MODEL_DETECTOR);
- }
-
public void setObjectType(String model) {
preferences.edit().putString(OBJECT_TYPE, model).apply();
}
