Remove unused methods
This commit is contained in:
parent
1c04aac1f0
commit
c16ff661be
4 changed files with 0 additions and 16 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,4 @@ public interface MarkdownEditView {
|
|||
void showFileSavedError(int code);
|
||||
void showFileLoadedMessage();
|
||||
void showFileLoadeddError(int code);
|
||||
|
||||
String getTempFilePath();
|
||||
}
|
||||
|
|
|
@ -128,9 +128,4 @@ public class EditFragment extends Fragment implements MarkdownEditView {
|
|||
super.onDestroyView();
|
||||
unbinder.unbind();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTempFilePath() {
|
||||
return getActivity().getFilesDir().getAbsolutePath() + "/";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue