Skip to content

Commit

Permalink
clean up style errors after removal of bookkeeping synchronous code
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Apr 18, 2013
1 parent 0181f32 commit 05cad00
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
Expand Up @@ -120,7 +120,6 @@ public Set<String> getObjectNames() throws RepositoryException {
public void deleteObject(String pid, Session session)
throws PathNotFoundException, RepositoryException {
Node obj = session.getNode(getObjectJcrNodePath(pid));
long objSize = getObjectSize(obj);
obj.remove();
session.save();
}
Expand Down
Expand Up @@ -11,9 +11,6 @@
import javax.annotation.PreDestroy;
import javax.inject.Inject;
import javax.jcr.NamespaceRegistry;
import javax.jcr.Node;
import javax.jcr.PathNotFoundException;
import javax.jcr.Property;
import javax.jcr.Repository;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
Expand Down
Expand Up @@ -114,9 +114,6 @@ public Response addDatastreams(@PathParam("pid")

final Session session = getAuthenticatedSession();
try {
Long oldObjectSize =
getObjectSize(session.getNode(getObjectJcrNodePath(pid)));

for (final Attachment a : attachmentList) {
final String dsid =
a.getContentDisposition().getParameter("name");
Expand Down Expand Up @@ -317,8 +314,6 @@ private URI addDatastreamNode(final String pid, final String dsPath,
final Session session) throws RepositoryException, IOException,
InvalidChecksumException {

Long oldObjectSize =
getObjectSize(session.getNode(getObjectJcrNodePath(pid)));
logger.debug("Attempting to add datastream node at path: " + dsPath);
try {
datastreamService.createDatastreamNode(session, dsPath, contentType
Expand Down
Expand Up @@ -117,7 +117,7 @@ public Response ingest(@PathParam("pid")

final Session session = getAuthenticatedSession();
try {
final Node obj = objectService.createObjectNode(session, pid);
objectService.createObjectNode(session, pid);
session.save();
logger.debug("Finished ingest with pid: " + pid);
return created(uriInfo.getAbsolutePath()).entity(pid).build();
Expand Down

0 comments on commit 05cad00

Please sign in to comment.