Optimize notebook page -> document lookup and remove dead code
commit8aa4f11cad2cf8404bc58f93464fdcd2140a2f69
authorColomban Wendling <ban@herbesfolles.org>
Sat, 21 Feb 2015 17:56:51 +0000 (21 18:56 +0100)
committerColomban Wendling <ban@herbesfolles.org>
Sat, 21 Feb 2015 17:56:51 +0000 (21 18:56 +0100)
treea395c1ff2c4d5c70e476aa0d93067bb6c18616ac
parent1a8de8fb09959ef22281328f25a6b03ede1fbafe
Optimize notebook page -> document lookup and remove dead code

This actually fixes a theoretical bug introduced when notebook pages
stopped being ScintillaWidgets, but this bug had no effect because it
was in a dead code path -- because no, `page_num` never is -1 nor
`page` NULL.
src/callbacks.c
src/document.c
src/document.h