Don't fetch the name, convert to a ptg, then convert back again, instead simply return the name directly

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613153 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2014-07-24 14:37:09 +00:00
parent bf6f54d836
commit f06915e95d
1 changed files with 2 additions and 7 deletions

View File

@ -151,13 +151,8 @@ public final class WorkbookEvaluator {
}
/* package */ EvaluationName getName(String name, int sheetIndex) {
NamePtg namePtg = _workbook.getName(name, sheetIndex).createPtg();
if(namePtg == null) {
return null;
} else {
return _workbook.getName(namePtg);
}
EvaluationName evalName = _workbook.getName(name, sheetIndex);
return evalName;
}
private static boolean isDebugLogEnabled() {