question: private void trimHistory ( ) { while ( mmHistory . size ( ) > mmMaxHistorySize ) { mmHistory . removeFirst ( ) ; mmPosition -- ; } if ( mmPosition < 0 ) { mmPosition = 0 ; } }
target:  Trim history when it exceeds max history size.