diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-06-16 12:18:04 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-06-16 12:18:04 +0200 |
commit | b9477edb53ff2462e6ad5f4ac260a3d8cb38c412 (patch) | |
tree | 5d42823968ea7fa92a0a70f1548607552877b459 /src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java | |
parent | e6b5713c125c65dc152ce1439c3c0fd0091f3820 (diff) |
cleanup; removed unnecessary imports and log outputs
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java')
-rw-r--r-- | src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java b/src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java index ea5d7285..0f2d4cae 100644 --- a/src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java +++ b/src/eu/siacs/conversations/xmpp/jingle/JingleSocks5Transport.java @@ -13,10 +13,6 @@ import java.security.NoSuchAlgorithmException; import java.util.Arrays; import eu.siacs.conversations.utils.CryptoHelper; -import eu.siacs.conversations.xml.Element; - -import android.util.Log; -import android.widget.Button; public class JingleSocks5Transport extends JingleTransport { private JingleCandidate candidate; @@ -150,13 +146,12 @@ public class JingleSocks5Transport extends JingleTransport { byte[] buffer = new byte[8192]; int count = buffer.length; while(remainingSize > 0) { - Log.d("xmppService","remaning size:"+remainingSize); if (remainingSize<=count) { count = (int) remainingSize; } count = inputStream.read(buffer, 0, count); if (count==-1) { - Log.d("xmppService","end of stream"); + // TODO throw exception } else { fileOutputStream.write(buffer, 0, count); digest.update(buffer, 0, count); @@ -166,7 +161,6 @@ public class JingleSocks5Transport extends JingleTransport { fileOutputStream.flush(); fileOutputStream.close(); file.setSha1Sum(CryptoHelper.bytesToHex(digest.digest())); - Log.d("xmppService","transmitted filename was: "+file.getAbsolutePath()); callback.onFileTransmitted(file); } catch (FileNotFoundException e) { // TODO Auto-generated catch block @@ -194,9 +188,8 @@ public class JingleSocks5Transport extends JingleTransport { if (this.socket!=null) { try { this.socket.close(); - Log.d("xmppService","cloesd socket with "+candidate.getHost()+":"+candidate.getPort()); } catch (IOException e) { - Log.d("xmppService","error closing socket with "+candidate.getHost()+":"+candidate.getPort()); + } } } |