Merge pull request #617 from andrewgaul/filesystem-transient-remove-copy

Remove unused copy method
This commit is contained in:
Adrian Cole 2012-05-08 21:21:21 -07:00
commit 0fe120d659
2 changed files with 2 additions and 14 deletions

View File

@ -246,7 +246,7 @@ public class FilesystemAsyncBlobStore extends BaseAsyncBlobStore {
storageStrategy.getAllContainerNames())); storageStrategy.getAllContainerNames()));
} }
public static MutableBlobMetadata copy(MutableBlobMetadata in) { private static MutableBlobMetadata copy(MutableBlobMetadata in) {
ByteArrayOutputStream bout = new ByteArrayOutputStream(); ByteArrayOutputStream bout = new ByteArrayOutputStream();
ObjectOutput os; ObjectOutput os;
try { try {
@ -271,12 +271,6 @@ public class FilesystemAsyncBlobStore extends BaseAsyncBlobStore {
metadata.setUserMetadata(lowerCaseUserMetadata); metadata.setUserMetadata(lowerCaseUserMetadata);
} }
public static MutableBlobMetadata copy(MutableBlobMetadata in, String newKey) {
MutableBlobMetadata newMd = copy(in);
newMd.setName(newKey);
return newMd;
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */

View File

@ -247,7 +247,7 @@ public class TransientAsyncBlobStore extends BaseAsyncBlobStore {
storageStrategy.getAllContainerNames())); storageStrategy.getAllContainerNames()));
} }
public static MutableBlobMetadata copy(MutableBlobMetadata in) { private static MutableBlobMetadata copy(MutableBlobMetadata in) {
ByteArrayOutputStream bout = new ByteArrayOutputStream(); ByteArrayOutputStream bout = new ByteArrayOutputStream();
ObjectOutput os; ObjectOutput os;
try { try {
@ -271,12 +271,6 @@ public class TransientAsyncBlobStore extends BaseAsyncBlobStore {
metadata.setUserMetadata(lowerCaseUserMetadata); metadata.setUserMetadata(lowerCaseUserMetadata);
} }
public static MutableBlobMetadata copy(MutableBlobMetadata in, String newKey) {
MutableBlobMetadata newMd = copy(in);
newMd.setName(newKey);
return newMd;
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */