Remove QNameModule.getRevisionNamespace()
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / QNameModule.java
index 5da98d990e356e46df2e318eecbae50fee7e77c0..8051db9c08bdab0e92175838e4000f561eec84f9 100644 (file)
@@ -17,7 +17,6 @@ import java.io.DataOutput;
 import java.io.IOException;
 import java.io.Serializable;
 import java.net.URI;
-import java.net.URISyntaxException;
 import java.util.Objects;
 import java.util.Optional;
 import org.eclipse.jdt.annotation.NonNull;
@@ -162,21 +161,6 @@ public final class QNameModule implements Comparable<QNameModule>, Immutable, Se
         return Objects.equals(revision, other.revision) && namespace.equals(other.namespace);
     }
 
-    /**
-     * Returns a namespace in form defined by section 5.6.4. of
-     * <a href=https://tools.ietf.org/html/rfc6020">RFC6020</a>, for example
-     * {@code http://example.acme.com/system?revision=2008-04-01}.
-     *
-     * @return Namespace in form defined by section 5.6.4. of RFC6020.
-     * @throws URISyntaxException on incorrect namespace definition
-     *
-     */
-    @NonNull URI getRevisionNamespace() throws URISyntaxException {
-        final String query = revision == null ? "" : "revision=" + revision.toString();
-        return new URI(namespace.getScheme(), namespace.getUserInfo(), namespace.getHost(), namespace.getPort(),
-            namespace.getPath(), query, namespace.getFragment());
-    }
-
     @Override
     public @NonNull String toString() {
         return MoreObjects.toStringHelper(QNameModule.class).omitNullValues().add("ns", namespace)