From 438abc4cf9b038f4ad8b0339e99f029c7889fd45 Mon Sep 17 00:00:00 2001 From: Ravi Khadiwala Date: Tue, 14 May 2024 10:58:41 -0500 Subject: [PATCH] Remove unused entity --- .../textsecuregcm/entities/AttachmentUri.java | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 service/src/main/java/org/whispersystems/textsecuregcm/entities/AttachmentUri.java diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/entities/AttachmentUri.java b/service/src/main/java/org/whispersystems/textsecuregcm/entities/AttachmentUri.java deleted file mode 100644 index 0531c76c5..000000000 --- a/service/src/main/java/org/whispersystems/textsecuregcm/entities/AttachmentUri.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2013-2020 Signal Messenger, LLC - * SPDX-License-Identifier: AGPL-3.0-only - */ -package org.whispersystems.textsecuregcm.entities; - -import com.fasterxml.jackson.annotation.JsonProperty; - -import java.net.MalformedURLException; -import java.net.URI; -import java.net.URL; - -public class AttachmentUri { - - @JsonProperty - private String location; - - public AttachmentUri(URL uri) { - this.location = uri.toString(); - } - - public AttachmentUri() {} - - public URL getLocation() throws MalformedURLException { - return URI.create(location).toURL(); - } -}