Skip to content

Commit 2015eb3

Browse files
committed
Removed more unused methods
1 parent f69b0ff commit 2015eb3

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

extractor/src/main/java/org/schabi/newpipe/extractor/NewPipe.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,6 @@ public static StreamingService getServiceByUrl(final String url) throws Extracti
9393
throw new ExtractionException("No service can handle the url = \"" + url + "\"");
9494
}
9595

96-
public static String getNameOfService(final int id) {
97-
try {
98-
return getService(id).getServiceInfo().getName();
99-
} catch (final Exception e) {
100-
System.err.println("Service id not known");
101-
e.printStackTrace();
102-
return "<unknown>";
103-
}
104-
}
105-
10696
/*//////////////////////////////////////////////////////////////////////////
10797
// Localization
10898
//////////////////////////////////////////////////////////////////////////*/

extractor/src/test/java/org/schabi/newpipe/extractor/NewPipeTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,4 @@ public void getServiceWithUrl() throws Exception {
4343
assertEquals(getServiceByUrl("https://soundcloud.com/pegboardnerds"), SoundCloud);
4444
assertEquals(getServiceByUrl("https://www.google.com/url?sa=t&url=https%3A%2F%2Fsoundcloud.com%2Fciaoproduction&rct=j&q=&esrc=s&source=web&cd="), SoundCloud);
4545
}
46-
47-
@Test
48-
public void getServiceNameWithId() throws Exception {
49-
assertEquals(NewPipe.getNameOfService(YouTube.getServiceId()), YouTube.getServiceInfo().getName());
50-
}
5146
}

0 commit comments

Comments
 (0)