Skip to content

Commit

Permalink
Re-apply 'clean up style errors after removal of bookkeeping synchron…
Browse files Browse the repository at this point in the history
…ous code', which was reverted by 010d315
  • Loading branch information
cbeer committed Apr 19, 2013
1 parent 161176e commit 1420263
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Expand Up @@ -119,7 +119,6 @@ public Set<String> getObjectNames() throws RepositoryException {
public void deleteObject(final String pid, final Session session)
throws PathNotFoundException, RepositoryException {
final Node obj = session.getNode(getObjectJcrNodePath(pid));
final long objSize = ServiceHelpers.getObjectSize(obj);
obj.remove();
session.save();
}
Expand Down
Expand Up @@ -117,8 +117,6 @@ public Response addDatastreams(@PathParam("pid")
final Session session = getAuthenticatedSession();
InputStream src = null;
try {
Long oldObjectSize =
getObjectSize(session.getNode(getObjectJcrNodePath(pid)));

for (BodyPart part : multipart.getBodyParts()) {
final String dsid = part.getContentDisposition().getParameters().get("name");
Expand Down Expand Up @@ -317,7 +315,6 @@ private URI addDatastreamNode(final String pid, final String dsPath,
try {
datastreamService.createDatastreamNode(session, dsPath, contentType
.toString(), requestBodyStream);
boolean created = session.nodeExists(dsPath);
session.save();
} finally {
session.logout();
Expand Down

0 comments on commit 1420263

Please sign in to comment.