Skip to content

Commit

Permalink
removed unused features
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrique committed Feb 26, 2015
1 parent b9d3955 commit 7c246de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions app/src/main/java/inaka/com/tinytask/Something.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
package inaka.com.tinytask;

public abstract class Something<T> {
public interface Something<T> {

abstract T whichDoes() throws Exception;

/**
* Optional: you can get a callback if the task was cancelled
*/
void ifCancelled() { }

}
1 change: 0 additions & 1 deletion app/src/main/java/inaka/com/tinytask/TinyTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public void go() {

public void cancel() {
if(genericTask != null) {
something.ifCancelled();
genericTask.cancel(true);
}
}
Expand Down

0 comments on commit 7c246de

Please sign in to comment.