From 72e0e67c3c65290b5e592822e01b3a6010899c29 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Wed, 20 Mar 2019 14:41:37 +0100 Subject: [PATCH] Remove 'dead' code, bringing the class back in line with upstream --- .../src/main/java/akka/protobuf/AbstractParser.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/akka-protobuf/src/main/java/akka/protobuf/AbstractParser.java b/akka-protobuf/src/main/java/akka/protobuf/AbstractParser.java index 011ff5df74..40b6f2d30a 100644 --- a/akka-protobuf/src/main/java/akka/protobuf/AbstractParser.java +++ b/akka-protobuf/src/main/java/akka/protobuf/AbstractParser.java @@ -114,10 +114,6 @@ public abstract class AbstractParser return message; } catch (InvalidProtocolBufferException e) { throw e; - } catch (IOException e) { - throw new RuntimeException( - "Reading from a ByteString threw an IOException (should " + - "never happen).", e); } } @@ -151,10 +147,6 @@ public abstract class AbstractParser return message; } catch (InvalidProtocolBufferException e) { throw e; - } catch (IOException e) { - throw new RuntimeException( - "Reading from a byte array threw an IOException (should " + - "never happen).", e); } }