Fix for AMQ-5099, removed dead code

This commit is contained in:
Kevin Earls 2014-03-19 19:00:34 +01:00
parent a3701fcb92
commit 5e14eecce6
1 changed files with 40 additions and 57 deletions

View File

@ -119,20 +119,7 @@ public final class OpenWireFormat implements WireFormat {
runMarshallCacheEvictionSweep();
}
// MarshallAware ma = null;
// // If not using value caching, then the marshaled form is always the
// // same
// if (!cacheEnabled && ((DataStructure)command).isMarshallAware()) {
// ma = (MarshallAware)command;
// }
ByteSequence sequence = null;
// if( ma!=null ) {
// sequence = ma.getCachedMarshalledForm(this);
// }
if (sequence == null) {
int size = 1;
if (command != null) {
@ -183,10 +170,6 @@ public final class OpenWireFormat implements WireFormat {
sequence = bytesOut.toByteSequence();
}
// if( ma!=null ) {
// ma.setCachedMarshalledForm(this, sequence);
// }
}
return sequence;
}