diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java index 702243e9a..3363e79da 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractChartFragment.java @@ -322,10 +322,6 @@ public abstract class AbstractChartFragment extends AbstractGBFragment { return provider.getAllActivitySamples(tsFrom, tsTo); } - private int getTSLast24Hours(int tsTo) { - return (tsTo) - (24 * 60 * 60); // -24 hours - } - protected List getActivitySamples(DBHandler db, GBDevice device, int tsFrom, int tsTo) { SampleProvider provider = getProvider(db, device); return provider.getActivitySamples(tsFrom, tsTo); @@ -337,18 +333,6 @@ public abstract class AbstractChartFragment extends AbstractGBFragment { return provider.getSleepSamples(tsFrom, tsTo); } - protected List getTestSamples(DBHandler db, GBDevice device, int tsFrom, int tsTo) { - Calendar cal = Calendar.getInstance(); - cal.clear(); - cal.set(2015, Calendar.JUNE, 10, 6, 40); - // ignore provided date ranges - tsTo = (int) ((cal.getTimeInMillis() / 1000)); - tsFrom = tsTo - (24 * 60 * 60); - - SampleProvider provider = getProvider(db, device); - return provider.getAllActivitySamples(tsFrom, tsTo); - } - protected void configureChartDefaults(Chart chart) { chart.getXAxis().setValueFormatter(new TimestampValueFormatter()); chart.getDescription().setText("");