From c8b9bb56bd7a73e39565fd577e14f8d5e1215c5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 8 Feb 2018 06:39:25 +0100 Subject: [PATCH] Remove superfluous fetch method --- .../net/pterodactylus/sone/core/SoneDownloader.java | 1 - .../pterodactylus/sone/core/SoneDownloaderImpl.java | 18 ++---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index 039faad..161536d 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -17,7 +17,6 @@ import com.google.inject.ImplementedBy; public interface SoneDownloader extends Service { void addSone(Sone sone); - void fetchSone(Sone sone, FreenetURI soneUri); Sone fetchSone(Sone sone, FreenetURI soneUri, boolean fetchOnly); Runnable fetchSoneWithUriAction(Sone sone); diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloaderImpl.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloaderImpl.java index d3f23ed..8470e49 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloaderImpl.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloaderImpl.java @@ -156,21 +156,7 @@ public class SoneDownloaderImpl extends AbstractService implements SoneDownloade } private void fetchSone(Sone sone) { - fetchSone(sone, sone.getRequestUri().sskForUSK()); - } - - /** - * Fetches the updated Sone. This method can be used to fetch a Sone from a - * specific URI. - * - * @param sone - * The Sone to fetch - * @param soneUri - * The URI to fetch the Sone from - */ - @Override - public void fetchSone(Sone sone, FreenetURI soneUri) { - fetchSone(sone, soneUri, false); + fetchSone(sone, sone.getRequestUri().sskForUSK(), false); } /** @@ -249,7 +235,7 @@ public class SoneDownloaderImpl extends AbstractService implements SoneDownloade return new Runnable() { @Override public void run() { - fetchSone(sone, sone.getRequestUri()); + fetchSone(sone, sone.getRequestUri(), false); } }; } -- 2.7.4