Permalink
Browse files

prune some dead logic for null dataset contexts

  • Loading branch information...
1 parent c9b3365 commit 8e5f9b558a050d3b4e2315c5ce6d9d838b1b8b5a @cbeer cbeer committed Jul 2, 2013
Showing with 0 additions and 6 deletions.
  1. +0 −6 fcrepo-kernel/src/main/java/org/fcrepo/FedoraResource.java
@@ -278,9 +278,6 @@ public Dataset getPropertiesDataset(final GraphSubjects subjects, final long off
String uri = JcrRdfTools.getGraphSubject(subjects, node).getURI();
com.hp.hpl.jena.sparql.util.Context context = dataset.getContext();
- if ( context == null ) {
- context = new com.hp.hpl.jena.sparql.util.Context();
- }
context.set(Symbol.create("uri"),uri);
return dataset;
@@ -319,9 +316,6 @@ public Dataset getVersionDataset(final GraphSubjects subjects)
String uri = JcrRdfTools.getGraphSubject(subjects, node).getURI();
com.hp.hpl.jena.sparql.util.Context context = dataset.getContext();
- if ( context == null ) {
- context = new com.hp.hpl.jena.sparql.util.Context();
- }
context.set(Symbol.create("uri"),uri);
return dataset;

0 comments on commit 8e5f9b5

Please sign in to comment.