Permalink
Browse files

Reverting some now unneeded changes

  • Loading branch information...
jcookems committed Jan 9, 2013
1 parent 2330429 commit c31e52e4a73783253b1058feae171c8bb9fcdfb1
@@ -16,7 +16,6 @@
package com.microsoft.windowsazure.services.media.implementation;
import java.io.IOException;
-import java.io.InputStream;
import java.io.Reader;
import java.io.StringReader;
@@ -29,11 +28,8 @@
private String reason;
public static StatusLine create(DataSource dataSource) {
- InputStream inputStream;
try {
- inputStream = dataSource.getInputStream();
-
- LineInputStream stream = new LineInputStream(inputStream);
+ LineInputStream stream = new LineInputStream(dataSource.getInputStream());
try {
String line = stream.readLine();
StringReader lineReader = new StringReader(line);
@@ -52,7 +48,6 @@ public static StatusLine create(DataSource dataSource) {
catch (IOException e) {
throw new RuntimeException(e);
}
-
}
private static void expect(Reader reader, String string) {
@@ -38,12 +38,8 @@ public HttpReaderWriter() {
}
public StatusLine parseStatusLine(DataSource ds) {
- InputStream inputStream;
try {
- inputStream = ds.getInputStream();
-
- LineInputStream stream = new LineInputStream(inputStream);
-
+ LineInputStream stream = new LineInputStream(ds.getInputStream());
try {
String line = stream.readLine();
StringReader lineReader = new StringReader(line);

0 comments on commit c31e52e

Please sign in to comment.