Remove unnecessary local variables
Change-Id: I20ee3f7258d7e98b9c57b49c21b1e2d1582f626f
This commit is contained in:

committed by
Shawn Pearce

parent
23e1a2e824
commit
bbf93f85cf
@@ -133,12 +133,10 @@ public class RelativeDateFormatter {
|
||||
}
|
||||
|
||||
private static long upperLimit(long unit) {
|
||||
long limit = unit + unit / 2;
|
||||
return limit;
|
||||
return unit + unit / 2;
|
||||
}
|
||||
|
||||
private static long round(long n, long unit) {
|
||||
long rounded = (n + unit / 2) / unit;
|
||||
return rounded;
|
||||
return (n + unit / 2) / unit;
|
||||
}
|
||||
}
|
||||
|
@@ -219,11 +219,8 @@ public class PatchTable extends Composite {
|
||||
if (previousPatchIndex < 0) {
|
||||
return null;
|
||||
}
|
||||
InlineHyperlink link =
|
||||
createLink(previousPatchIndex, patchType,
|
||||
SafeHtml.asis(Util.C.prevPatchLinkIcon()), null);
|
||||
|
||||
return link;
|
||||
return createLink(previousPatchIndex, patchType,
|
||||
SafeHtml.asis(Util.C.prevPatchLinkIcon()), null);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -234,11 +231,8 @@ public class PatchTable extends Composite {
|
||||
if (nextPatchIndex < 0) {
|
||||
return null;
|
||||
}
|
||||
InlineHyperlink link =
|
||||
createLink(nextPatchIndex, patchType, null,
|
||||
SafeHtml.asis(Util.C.nextPatchLinkIcon()));
|
||||
|
||||
return link;
|
||||
return createLink(nextPatchIndex, patchType, null,
|
||||
SafeHtml.asis(Util.C.nextPatchLinkIcon()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user