Permalink
Browse files

No clue how that happened. Stupid git.

  • Loading branch information...
greese committed Mar 13, 2013
1 parent b160816 commit bcf5b606f078b4cbd0532087715d9425127148e8
Showing with 0 additions and 32 deletions.
  1. +0 −32 src/main/java/org/dasein/cloud/aws/storage/S3.java
@@ -1294,38 +1294,6 @@ protected void put(@Nullable String bucket, @Nonnull String object, @Nonnull Str
file.delete();
}
}
- File file = null;
- try {
- try {
- file = File.createTempFile(object, ".txt");
- PrintWriter writer = new PrintWriter(new OutputStreamWriter(new FileOutputStream(file)));
- writer.print(content);
- writer.flush();
- writer.close();
- }
- catch( IOException e ) {
- logger.error(e);
- e.printStackTrace();
- throw new InternalException(e);
- }
- method = new S3Method(provider, S3Action.PUT_OBJECT, null, headers, "text/plain", file);
- try {
- method.invoke(bucket, object);
- }
- catch( S3Exception e ) {
- logger.error(e.getSummary());
- throw new CloudException(e);
- }
- }
- finally {
- if( file != null ) {
- //noinspection ResultOfMethodCallIgnored
- file.delete();
- }
- }
- }
- finally {
- APITrace.end();
}
finally {
APITrace.end();

0 comments on commit bcf5b60

Please sign in to comment.