aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-05-05 11:52:33 +1000
committernyamatongwe <devnull@localhost>2013-05-05 11:52:33 +1000
commit46f28c2d01bd405725df6e06d0eeb543bb9092f8 (patch)
tree623c7c1d96743351a979f0101943474730545ecb /src/PositionCache.cxx
parent1cc7b583576574d94e038692608f73df96964485 (diff)
downloadscintilla-mirror-46f28c2d01bd405725df6e06d0eeb543bb9092f8.tar.gz
Since new throws an exception on failure, remove testing of result.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r--src/PositionCache.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx
index 9fb045636..b03a97d38 100644
--- a/src/PositionCache.cxx
+++ b/src/PositionCache.cxx
@@ -309,12 +309,10 @@ LineLayout *LineLayoutCache::Retrieve(int lineNumber, int lineCaret, int maxChar
if (!cache[pos]) {
cache[pos] = new LineLayout(maxChars);
}
- if (cache[pos]) {
- cache[pos]->lineNumber = lineNumber;
- cache[pos]->inCache = true;
- ret = cache[pos];
- useCount++;
- }
+ cache[pos]->lineNumber = lineNumber;
+ cache[pos]->inCache = true;
+ ret = cache[pos];
+ useCount++;
}
}