Removed unnecessary Math.round() call

Result of the operation is always an integer so the call to Math.round() 
is redundant.

Change-Id: I19fe01b0d71241012ad9f2b5f5c11fabf2b216f5
Signed-off-by: Eryk Szymanski <eryksz@gmail.com>
This commit is contained in:
Eryk Szymanski
2014-01-29 00:20:29 +01:00
parent 5579c284d5
commit 945fbd4bea

View File

@@ -329,7 +329,7 @@ public class ChangeTable2 extends NavigationTable<ChangeInfo> {
int changedLines = c.insertions() + c.deletions();
int p = 100;
if (changedLines < largeChangeSize) {
p = Math.round(changedLines * 100 / largeChangeSize);
p = changedLines * 100 / largeChangeSize;
}
int width = Math.max(2, 70 * p / 100);