don't bother cloning message when it'll be passed to multiple games.

Clone was too late, and there's no chance of modification of the
contents.
This commit is contained in:
Eric House 2012-05-30 06:54:30 -07:00
parent a03dc80205
commit 27ddc355ed
2 changed files with 0 additions and 7 deletions

View file

@ -505,10 +505,6 @@ public class BTService extends Service {
DbgUtils.logf( "nobody took msg for gameID %X",
gameID );
}
// duplicate in case recipient modifies the msg
if ( 1 < rowids.length ) {
buffer = (byte[])buffer.clone();
}
}
} else {
DbgUtils.logf( "receiveMessages: read only %d of %d bytes",

View file

@ -560,9 +560,6 @@ public class SMSService extends Service {
);
}
}
if ( 1 < rowids.length ) {
msg = (byte[])msg.clone();
}
}
}
}