Remove unused methods

This commit is contained in:
William Brawner 2018-01-18 03:02:20 -06:00
parent 1c04aac1f0
commit c16ff661be
4 changed files with 0 additions and 16 deletions

View file

@ -34,7 +34,6 @@ public interface MarkdownPresenter {
String generateHTML(String markdown);
String getMarkdown();
void setMarkdown(String markdown);
void loadTempFile();
public abstract class OnTempFileLoadedListener {
public abstract void onSuccess(String markdown);

View file

@ -209,12 +209,4 @@ public class MarkdownPresenterImpl implements MarkdownPresenter {
editView.showFileLoadeddError(MarkdownFile.READ_ERROR);
}
}
@Override
public void loadTempFile() {
String tempFileName = "auto-" + getFileName();
String tempFilePath = editView.getTempFilePath();
loadMarkdown(tempFilePath + tempFileName);
MarkdownFile.deleteTempFile(tempFilePath + tempFileName);
}
}

View file

@ -12,6 +12,4 @@ public interface MarkdownEditView {
void showFileSavedError(int code);
void showFileLoadedMessage();
void showFileLoadeddError(int code);
String getTempFilePath();
}

View file

@ -128,9 +128,4 @@ public class EditFragment extends Fragment implements MarkdownEditView {
super.onDestroyView();
unbinder.unbind();
}
@Override
public String getTempFilePath() {
return getActivity().getFilesDir().getAbsolutePath() + "/";
}
}