diff options
author | Taco <SkytkRSfan3895@gmail.com> | 2024-03-04 17:07:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 23:07:28 +0100 |
commit | 40da13e014a5b0c6e31b0234e31dac8c55473262 (patch) | |
tree | e3486b010b88415b83ae1c0467e3ce2890772fb6 /net/sync/gpoddernet/src/main/java | |
parent | c06a3a6d27c61910e06041c70d9113a7ef4c4c5f (diff) | |
download | AntennaPod-40da13e014a5b0c6e31b0234e31dac8c55473262.zip |
Clean up some dead code (#6952)
Diffstat (limited to 'net/sync/gpoddernet/src/main/java')
-rw-r--r-- | net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/GpodnetService.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/GpodnetService.java b/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/GpodnetService.java index 7873ae4fe..da23cd351 100644 --- a/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/GpodnetService.java +++ b/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/GpodnetService.java @@ -167,38 +167,6 @@ public class GpodnetService implements ISyncService { } /** - * Uploads the subscriptions of a specific device. - * <p/> - * This method requires authentication. - * - * @param deviceId The ID of the device whose subscriptions should be updated. - * @param subscriptions A list of feed URLs containing all subscriptions of the - * device. - * @throws IllegalArgumentException If username, deviceId or subscriptions is null. - * @throws GpodnetServiceAuthenticationException If there is an authentication error. - */ - public void uploadSubscriptions(@NonNull String deviceId, @NonNull List<String> subscriptions) - throws GpodnetServiceException { - requireLoggedIn(); - try { - URL url = new URI(baseScheme, null, baseHost, basePort, - String.format("/subscriptions/%s/%s.txt", username, deviceId), null, null).toURL(); - StringBuilder builder = new StringBuilder(); - for (String s : subscriptions) { - builder.append(s); - builder.append("\n"); - } - RequestBody body = RequestBody.create(TEXT, builder.toString()); - Request.Builder request = new Request.Builder().put(body).url(url); - executeRequest(request); - } catch (MalformedURLException | URISyntaxException e) { - e.printStackTrace(); - throw new GpodnetServiceException(e); - } - - } - - /** * Updates the subscription list of a specific device. * <p/> * This method requires authentication. |