From 17976d8e618b6267d9fd7b687941b983dfce63d9 Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Thu, 18 Jan 2018 03:02:20 -0600 Subject: [PATCH] Remove unused methods --- .../simplemarkdown/presentation/MarkdownPresenter.java | 1 - .../presentation/MarkdownPresenterImpl.java | 8 -------- .../wbrawner/simplemarkdown/view/MarkdownEditView.java | 2 -- .../simplemarkdown/view/fragment/EditFragment.java | 5 ----- 4 files changed, 16 deletions(-) diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenter.java b/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenter.java index 0a0f6ba..2d637b6 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenter.java +++ b/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenter.java @@ -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); diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenterImpl.java b/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenterImpl.java index 2345843..011f9d6 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenterImpl.java +++ b/app/src/main/java/com/wbrawner/simplemarkdown/presentation/MarkdownPresenterImpl.java @@ -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); - } } diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.java b/app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.java index 74ee17e..9b26695 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.java +++ b/app/src/main/java/com/wbrawner/simplemarkdown/view/MarkdownEditView.java @@ -12,6 +12,4 @@ public interface MarkdownEditView { void showFileSavedError(int code); void showFileLoadedMessage(); void showFileLoadeddError(int code); - - String getTempFilePath(); } diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/view/fragment/EditFragment.java b/app/src/main/java/com/wbrawner/simplemarkdown/view/fragment/EditFragment.java index ef24963..19458bd 100644 --- a/app/src/main/java/com/wbrawner/simplemarkdown/view/fragment/EditFragment.java +++ b/app/src/main/java/com/wbrawner/simplemarkdown/view/fragment/EditFragment.java @@ -128,9 +128,4 @@ public class EditFragment extends Fragment implements MarkdownEditView { super.onDestroyView(); unbinder.unbind(); } - - @Override - public String getTempFilePath() { - return getActivity().getFilesDir().getAbsolutePath() + "/"; - } }