You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by cl...@apache.org on 2018/10/14 10:32:15 UTC
[8/8] jena git commit: removed unused code
removed unused code
Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/4702f974
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/4702f974
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/4702f974
Branch: refs/heads/master
Commit: 4702f9742c220ce505acf66ecdeeb8a302a1d8a7
Parents: 3dfdfa8
Author: Claude Warren <cl...@xenei.com>
Authored: Sun Oct 14 11:29:39 2018 +0100
Committer: Claude Warren <cl...@xenei.com>
Committed: Sun Oct 14 11:29:39 2018 +0100
----------------------------------------------------------------------
.../updatebuilder/CollectionQuadHolderTest.java | 86 --------------------
1 file changed, 86 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jena/blob/4702f974/jena-extras/jena-querybuilder/src/test/java/org/apache/jena/arq/querybuilder/updatebuilder/CollectionQuadHolderTest.java
----------------------------------------------------------------------
diff --git a/jena-extras/jena-querybuilder/src/test/java/org/apache/jena/arq/querybuilder/updatebuilder/CollectionQuadHolderTest.java b/jena-extras/jena-querybuilder/src/test/java/org/apache/jena/arq/querybuilder/updatebuilder/CollectionQuadHolderTest.java
index 38be596..c822ab4 100644
--- a/jena-extras/jena-querybuilder/src/test/java/org/apache/jena/arq/querybuilder/updatebuilder/CollectionQuadHolderTest.java
+++ b/jena-extras/jena-querybuilder/src/test/java/org/apache/jena/arq/querybuilder/updatebuilder/CollectionQuadHolderTest.java
@@ -251,90 +251,4 @@ public class CollectionQuadHolderTest {
assertEquals( new Quad( Quad.defaultGraphNodeGenerated, aLst.get(0)), lst.get(0));
assertEquals( new Quad( Quad.defaultGraphNodeGenerated, aLst.get(1)), lst.get(1));
}
-
-// @Test
-// public void anonymousGraphTest_var()
-// {
-// Node g = NodeFactory.createURI( "g" );
-// Node s = NodeFactory.createURI( "s" );
-// Node p = NodeFactory.createVariable( "p" );
-// Node o = NodeFactory.createURI( "o" );
-// Triple triple = new Triple( s, p, o );
-// Quad quad = new Quad( Quad.defaultGraphNodeGenerated, s, p, o );
-// holder = new SingleQuadHolder( triple );
-// List<Quad> lst = holder.getQuads().toList();
-// assertEquals( 1, lst.size() );
-// assertEquals( quad, lst.get(0));
-//
-// Map<Var,Node> map = new HashMap<>();
-// Node p2 = NodeFactory.createURI( "p2" );
-// map.put( Var.alloc(p), p2);
-// holder.setValues( map );
-// Quad quad2 = new Quad( Quad.defaultGraphNodeGenerated, s, p2, o );
-// lst = holder.getQuads().toList();
-// assertEquals( 1, lst.size() );
-// assertEquals( quad2, lst.get(0));
-//
-// /**
-// * Constructor.
-// *
-// * @param graph
-// * the default graph name for the triples
-// * @param triples
-// * the collection of triples.
-// */
-// public CollectionQuadHolder(final Node graph, Collection<Triple> triples) {
-// this.collection = new HashSet<Triple>();
-// this.collection.addAll( triples );
-// defaultGraphName = graph;
-// }
-//
-// /**
-// * Constructor.
-// *
-// * @param graph
-// * the default graph name for the triples
-// * @param triples
-// * the iterator of triples.
-// */
-// public CollectionQuadHolder(final Node graph, Iterator<Triple> triples) {
-// this.collection = WrappedIterator.create( triples ).toSet();
-// defaultGraphName = graph;
-// }
-//
-// /**
-// * Constructor. Uses Quad.defaultGraphNodeGenerated for the graph name.
-// *
-// * @see Quad#defaultGraphNodeGenerated
-// * @param triples
-// * the collection of triples.
-// */
-// public CollectionQuadHolder(final Collection<Triple> triples) {
-// this( Quad.defaultGraphNodeGenerated, triples );
-// }
-//
-// /**
-// * Constructor.
-// *
-// * @param triples
-// * the iterator of triples.
-// */
-// public CollectionQuadHolder(Iterator<Triple> triples) {
-// this.collection = WrappedIterator.create( triples ).toSet();
-// defaultGraphName = Quad.defaultGraphNodeGenerated;
-// }
-//
-// @Override
-// public ExtendedIterator<Quad> getQuads() {
-// return WrappedIterator.create(collection.iterator())
-// .mapWith( triple -> new Quad( defaultGraphName, triple ) );
-// }
-//
-// /**
-// * This implementation does nothing.
-// */
-// @Override
-// public QuadHolder setValues(final Map<Var, Node> values) {
-// return this;
-// }
}