diff options
Diffstat (limited to 'src/com/google/common/io/protocol/ProtoBufUtil.java')
-rw-r--r-- | src/com/google/common/io/protocol/ProtoBufUtil.java | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/com/google/common/io/protocol/ProtoBufUtil.java b/src/com/google/common/io/protocol/ProtoBufUtil.java index b47e79c1..72e1bca9 100644 --- a/src/com/google/common/io/protocol/ProtoBufUtil.java +++ b/src/com/google/common/io/protocol/ProtoBufUtil.java @@ -22,25 +22,6 @@ public final class ProtoBufUtil { } } - /** Convenience method to return a string value from of a proto or null. */ - public static String getProtoValueOrNull(ProtoBuf proto, int tag) { - try { - return (proto != null && proto.has(tag)) ? proto.getString(tag) : null; - } catch (ClassCastException e) { - return null; - } - } - - /** Convenience method to return a string value from of a proto or null. */ - public static String getProtoValueOrNull(ProtoBuf proto, int tag, int index) { - try { - return (proto != null && proto.has(tag) && proto.getCount(tag) > index) ? - proto.getString(tag, index) : null; - } catch (ClassCastException e) { - return null; - } - } - /** Convenience method to return a string value from of a sub-proto or "". */ public static String getSubProtoValueOrEmpty( ProtoBuf proto, int sub, int tag) { |