Deleted deprecated and unused classes and files
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
package com.philliphsu.clock2.timers;
|
||||
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.philliphsu.clock2.BaseAdapter;
|
||||
import com.philliphsu.clock2.OnListItemInteractionListener;
|
||||
import com.philliphsu.clock2.Timer;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Phillip Hsu on 7/26/2016.
|
||||
*/
|
||||
@Deprecated
|
||||
public class TimerAdapter extends BaseAdapter<Timer, TimerViewHolder> {
|
||||
|
||||
public TimerAdapter(List<Timer> items, OnListItemInteractionListener<Timer> listener) {
|
||||
super(Timer.class, items, listener);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected TimerViewHolder onCreateViewHolder(ViewGroup parent, OnListItemInteractionListener<Timer> listener) {
|
||||
return new TimerViewHolder(parent, listener, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int compare(Timer o1, Timer o2) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean areContentsTheSame(Timer oldItem, Timer newItem) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean areItemsTheSame(Timer item1, Timer item2) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
package com.philliphsu.clock2.timers.dummy;
|
||||
|
||||
import com.philliphsu.clock2.Timer;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Helper class for providing sample content for user interfaces created by
|
||||
* Android template wizards.
|
||||
* <p/>
|
||||
* TODO: Replace all uses of this class before publishing your app.
|
||||
*/
|
||||
public class DummyContent {
|
||||
|
||||
/**
|
||||
* An array of sample (dummy) items.
|
||||
*/
|
||||
public static final List<Timer> ITEMS = new ArrayList<>();
|
||||
|
||||
private static final int COUNT = 10;
|
||||
|
||||
static {
|
||||
// Add some sample items.
|
||||
for (int i = 1; i <= COUNT; i++) {
|
||||
addItem(createTimer(i));
|
||||
}
|
||||
}
|
||||
|
||||
private static void addItem(Timer item) {
|
||||
ITEMS.add(item);
|
||||
}
|
||||
|
||||
private static Timer createTimer(int position) {
|
||||
return Timer.create(1, 0, 0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user