summarylogtreecommitdiffstats
path: root/0001-keyutils-fix-constructor-call.patch
blob: 207184fb09da172626a636c978cac6a0c15b51ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
From 1b4899895442c368707035ea6b3bf9205beb08fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?=
 <bombe@pterodactylus.net>
Date: Tue, 11 Aug 2020 09:56:07 +0200
Subject: [PATCH] Fix constructor call

---
 src/plugins/KeyUtils/VerySimpleGetter.java | 23 +---------------------
 1 file changed, 1 insertion(+), 22 deletions(-)

diff --git a/src/plugins/KeyUtils/VerySimpleGetter.java b/src/plugins/KeyUtils/VerySimpleGetter.java
index 7eec25c..7e691cf 100644
--- a/src/plugins/KeyUtils/VerySimpleGetter.java
+++ b/src/plugins/KeyUtils/VerySimpleGetter.java
@@ -10,7 +10,6 @@
 import freenet.keys.FreenetURI;
 import freenet.node.RequestClient;
 import freenet.support.Logger;
-import freenet.support.io.ResumeFailedException;
 
 /**
  * @author saces
@@ -25,26 +24,6 @@
 	}
 
 	private FreenetURI uri;
-	
-	private static class FakeCallback implements ClientBaseCallback {
-	    
-	    FakeCallback(RequestClient client) {
-	        this.client = client;
-	    }
-	    
-	    final RequestClient client;
-
-        @Override
-        public void onResume(ClientContext context) throws ResumeFailedException {
-            throw new UnsupportedOperationException();
-        }
-
-        @Override
-        public RequestClient getRequestClient() {
-            return client;
-        }
-	    
-	}
 
 	/**
 	 * @param priorityclass 
@@ -54,7 +33,7 @@ public RequestClient getRequestClient() {
 	 * 
 	 */
 	public VerySimpleGetter(short priorityclass, FreenetURI uri2, RequestClient client2) {
-		super(priorityclass, new FakeCallback(client2));
+		super(priorityclass, client2);
 		uri = uri2;
 	}