Remove unused methods

This commit is contained in:
William Brawner 2018-01-18 03:02:20 -06:00 committed by William Brawner
parent fe63f886fc
commit 17976d8e61
4 changed files with 0 additions and 16 deletions

View file

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

View file

@ -209,12 +209,4 @@ public class MarkdownPresenterImpl implements MarkdownPresenter {
editView.showFileLoadeddError(MarkdownFile.READ_ERROR); 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 showFileSavedError(int code);
void showFileLoadedMessage(); void showFileLoadedMessage();
void showFileLoadeddError(int code); void showFileLoadeddError(int code);
String getTempFilePath();
} }

View file

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