Remove unused entity
This commit is contained in:
parent
40639f70f4
commit
438abc4cf9
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue