Skip to content

Commit 4258e3c

Browse files
author
Steve Powell
committed
Tweak: remove unnecessary private function.
1 parent 829b85c commit 4258e3c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/com/rabbitmq/client/impl/CommandAssembler.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,10 @@ public synchronized byte[] getContentBody() {
141141
return coalesceContentBody();
142142
}
143143

144-
private static int byteArrayLength(byte[] ba) {
145-
return (ba == null) ? 0 : ba.length;
146-
}
147-
148144
private void appendBodyFragment(byte[] fragment) {
149145
if (fragment == null || fragment.length == 0) return;
150146
bodyN.add(fragment);
151-
bodyLength += byteArrayLength(fragment);
147+
bodyLength += fragment.length;
152148
}
153149

154150
/**

0 commit comments

Comments
 (0)