Skip to content

Commit bb96812

Browse files
authored
Merge pull request #239 from vorburger/rm-dns
fix: Remove broken failing test of @deprecated DNS method
2 parents f791b82 + 5962eff commit bb96812

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

src/main/java/io/ipfs/api/IPFS.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,6 @@ public Map resolve(String scheme, Multihash hash, boolean recursive) throws IOEx
200200
return retrieveMap("resolve?arg=/" + scheme+"/"+hash +"&r="+recursive);
201201
}
202202

203-
@Deprecated
204-
public String dns(String domain, boolean recursive) throws IOException {
205-
Map res = retrieveMap("dns?arg=" + domain + "&r=" + recursive);
206-
return (String)res.get("Path");
207-
}
208-
209203
public Map mount(java.io.File ipfsRoot, java.io.File ipnsRoot) throws IOException {
210204
if (ipfsRoot != null && !ipfsRoot.exists())
211205
ipfsRoot.mkdirs();

src/test/java/io/ipfs/api/APITest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -735,12 +735,6 @@ public void nameTest() throws IOException {
735735
String resolved = ipfs.name.resolve(Cid.decode((String) pub.get("Name")));
736736
}
737737

738-
@Test
739-
public void dnsTest() throws IOException {
740-
String domain = "ipfs.io";
741-
String dns = ipfs.dns(domain, true);
742-
}
743-
744738
public void mountTest() throws IOException {
745739
Map mount = ipfs.mount(null, null);
746740
}

0 commit comments

Comments
 (0)