Drop unused formatLanguage property from patch table
This is no longer used once we moved to server side formatting of the syntax highlights. Change-Id: I182b72e2448ef354b7583f5de887880ac9d7aeba Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -59,7 +59,6 @@ public abstract class AbstractPatchContentTable extends NavigationTable<Object>
|
|||||||
protected PatchSet.Id idSideA;
|
protected PatchSet.Id idSideA;
|
||||||
protected PatchSet.Id idSideB;
|
protected PatchSet.Id idSideB;
|
||||||
protected boolean onlyOneHunk;
|
protected boolean onlyOneHunk;
|
||||||
protected String formatLanguage;
|
|
||||||
|
|
||||||
private final KeyCommandSet keysComment;
|
private final KeyCommandSet keysComment;
|
||||||
private HandlerRegistration regComment;
|
private HandlerRegistration regComment;
|
||||||
@@ -145,7 +144,6 @@ public abstract class AbstractPatchContentTable extends NavigationTable<Object>
|
|||||||
|
|
||||||
final String pathName = patchKey.get();
|
final String pathName = patchKey.get();
|
||||||
int ext = pathName.lastIndexOf('.');
|
int ext = pathName.lastIndexOf('.');
|
||||||
formatLanguage = ext > 0 ? pathName.substring(ext + 1).toLowerCase() : null;
|
|
||||||
|
|
||||||
render(s);
|
render(s);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user