Merge "Trim the Dispatcher.patch()"

This commit is contained in:
David Pursehouse 2013-11-28 05:33:40 +00:00 committed by Gerrit Code Review
commit 261f030753
1 changed files with 9 additions and 18 deletions

View File

@ -601,16 +601,7 @@ public class Dispatcher {
panel = 0 <= c ? token.substring(c + 1) : "";
}
if ("sidebyside".equals(panel)) {
return new PatchScreen.SideBySide( //
id, //
patchIndex, //
patchSetDetail, //
patchTable, //
top, //
baseId //
);
} else if ("unified".equals(panel)) {
if ("unified".equals(panel)) {
return new PatchScreen.Unified( //
id, //
patchIndex, //
@ -634,14 +625,14 @@ public class Dispatcher {
);
}
return new SideBySide2(baseId, id.getParentKey(), id.get());
} else if ("".equals(panel)) {
return new PatchScreen.SideBySide(
id,
patchIndex,
patchSetDetail,
patchTable,
top,
baseId);
} else if ("".equals(panel) || "sidebyside".equals(panel)) {
return new PatchScreen.SideBySide(//
id, //
patchIndex,//
patchSetDetail,//
patchTable,//
top,//
baseId);//
}
}