projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused method.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
SoneDownloader.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
index
8b3ad79
..
decd574
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
+++ b/
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
@@
-105,18
+105,6
@@
public class SoneDownloader extends AbstractService {
}
/**
}
/**
- * Removes the given Sone from the downloader.
- *
- * @param sone
- * The Sone to stop watching
- */
- public void removeSone(Sone sone) {
- if (sones.remove(sone)) {
- freenetInterface.unregisterUsk(sone);
- }
- }
-
- /**
* Fetches the updated Sone. This method is a callback method for
* {@link FreenetInterface#registerUsk(Sone, SoneDownloader)}.
*
* Fetches the updated Sone. This method is a callback method for
* {@link FreenetInterface#registerUsk(Sone, SoneDownloader)}.
*
@@
-533,6
+521,21
@@
public class SoneDownloader extends AbstractService {
}
}
}
}
+ public class FetchSoneWithUri implements Runnable {
+
+ private final Sone sone;
+
+ public FetchSoneWithUri(Sone sone) {
+ this.sone = sone;
+ }
+
+ @Override
+ public void run() {
+ fetchSone(sone, sone.getRequestUri());
+ }
+
+ }
+
public class FetchSone implements Runnable {
private final Sone sone;
public class FetchSone implements Runnable {
private final Sone sone;
@@
-543,7
+546,7
@@
public class SoneDownloader extends AbstractService {
@Override
public void run() {
@Override
public void run() {
- fetchSone(sone
, sone.getRequestUri()
);
+ fetchSone(sone);
}
}
}
}