From 26c0795acabf1964ac9ba6dc7e212d58d9714c83 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 12 Jul 2009 23:01:15 +0000 Subject: Since exception handling now turned on, do not check return value from new. --- src/PositionCache.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/PositionCache.cxx') diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 42f5fa3f3..d3e19d4f4 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -131,8 +131,6 @@ void LineLayout::SetLineStart(int line, int start) { if ((line >= lenLineStarts) && (line != 0)) { int newMaxLines = line + 20; int *newLineStarts = new int[newMaxLines]; - if (!newLineStarts) - return; for (int i = 0; i < newMaxLines; i++) { if (i < lenLineStarts) newLineStarts[i] = lineStarts[i]; -- cgit v1.2.3