Minor cleanup.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2014-11-26 10:05:30 -08:00
parent a9637baddf
commit 0fb7f3b970
2 changed files with 2 additions and 12 deletions

View File

@ -16,8 +16,6 @@
*/
package org.whispersystems.textsecure.api.crypto;
import android.util.Log;
import org.whispersystems.libaxolotl.InvalidMacException;
import org.whispersystems.libaxolotl.InvalidMessageException;
import org.whispersystems.textsecure.internal.util.Util;
@ -109,15 +107,8 @@ public class AttachmentCipherInputStream extends FileInputStream {
done = true;
return flourish;
} catch (IllegalBlockSizeException e) {
Log.w("EncryptingPartInputStream", e);
throw new IOException("Illegal block size exception!");
} catch (ShortBufferException e) {
Log.w("EncryptingPartInputStream", e);
throw new IOException("Short buffer exception!");
} catch (BadPaddingException e) {
Log.w("EncryptingPartInputStream", e);
throw new IOException("Bad padding exception!");
} catch (IllegalBlockSizeException | BadPaddingException | ShortBufferException e) {
throw new IOException(e);
}
}

View File

@ -17,7 +17,6 @@
package org.whispersystems.textsecure.api.push.exceptions;
import java.io.IOException;
import java.util.List;
public class UnregisteredUserException extends IOException {