You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2023/12/27 17:02:42 UTC

(jena) 05/10: Remove unused GetTriple

This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git

commit d8eab6b73e472dea88121cc5ce1400e1e473b7bf
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Tue Dec 12 22:47:13 2023 +0000

    Remove unused GetTriple
---
 .../java/org/apache/jena/graph/FrontsNode.java     | 18 +++++------
 .../java/org/apache/jena/graph/FrontsTriple.java   | 13 ++++----
 .../main/java/org/apache/jena/graph/GetTriple.java | 37 ----------------------
 3 files changed, 14 insertions(+), 54 deletions(-)

diff --git a/jena-core/src/main/java/org/apache/jena/graph/FrontsNode.java b/jena-core/src/main/java/org/apache/jena/graph/FrontsNode.java
index 98e80654f9..63f58e3782 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/FrontsNode.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/FrontsNode.java
@@ -19,15 +19,13 @@
 package org.apache.jena.graph;
 
 /**
-	HasNode - interface for objects that front a Node in some context. The critical
-    semantics for HasNode is that classes implementing HasNode promise that
-    their .equals() is based *only* on the underlying Node. 
-
-*/
-public interface FrontsNode 
-    {
+ * HasNode - interface for objects that front a Node in some context. The critical
+ * semantics for HasNode is that classes implementing HasNode promise that their
+ * .equals() is based *only* on the underlying Node.
+ */
+public interface FrontsNode {
     /**
-        Answer the Node associated with this object.
-    */
+     * Answer the Node associated with this object.
+     */
     Node asNode();
-    }
+}
diff --git a/jena-core/src/main/java/org/apache/jena/graph/FrontsTriple.java b/jena-core/src/main/java/org/apache/jena/graph/FrontsTriple.java
index 98b907d544..d8b77b4deb 100644
--- a/jena-core/src/main/java/org/apache/jena/graph/FrontsTriple.java
+++ b/jena-core/src/main/java/org/apache/jena/graph/FrontsTriple.java
@@ -19,10 +19,9 @@
 package org.apache.jena.graph;
 
 /**
- 	FrontsTriple (see also FrontsNode) is an interface for things that can
- 	be seen as wrappers round triples.
-*/
-public interface FrontsTriple
-	{
-	Triple asTriple();
-	}
+ * FrontsTriple (see also FrontsNode) is an interface for things that can be seen as
+ * wrappers round triples.
+ */
+public interface FrontsTriple {
+    Triple asTriple();
+}
diff --git a/jena-core/src/main/java/org/apache/jena/graph/GetTriple.java b/jena-core/src/main/java/org/apache/jena/graph/GetTriple.java
deleted file mode 100644
index b0bd8236da..0000000000
--- a/jena-core/src/main/java/org/apache/jena/graph/GetTriple.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.jena.graph;
-
-/**
-    this interface describes types that can have a triple extracted using
-    a <code>getTriple</code> method. It was constructed so that Node's 
-    can have possibly embedded triples but defer to a GetTriple object if 
-    they have no triple of their own; the particular GetTriple used initially is
-    in Reifier, but that seemed excessively special.
-*/
-
-public interface GetTriple
-    {
-    /**
-        Answer the triple associated with the node <code>n</code>.
-        @param n the node to use as the key
-        @return the associated triple, or <code>null</code> if none
-    */
-    public Triple getTriple( Node n );
-    }