From: David ‘Bombe’ Roden Date: Thu, 8 Feb 2018 05:39:25 +0000 (+0100) Subject: Remove superfluous fetch method X-Git-Tag: v79^2~138 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=c8b9bb56bd7a73e39565fd577e14f8d5e1215c5d Remove superfluous fetch method --- 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); } }; }