Skip to content

Commit

Permalink
prune some dead logic for null dataset contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jul 2, 2013
1 parent c9b3365 commit 8e5f9b5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions fcrepo-kernel/src/main/java/org/fcrepo/FedoraResource.java
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8e5f9b5

Please sign in to comment.