Eliminate C variables unused since 4d0fbddde6c5dcb9 refactored HvFILL()
authorNicholas Clark <nick@ccl4.org>
Tue, 29 Mar 2011 12:38:13 +0000 (13:38 +0100)
committerNicholas Clark <nick@ccl4.org>
Wed, 18 May 2011 19:26:54 +0000 (20:26 +0100)
commit9de10d5cc42400cb24ab416f95826fe4d2a152a6
tree0077ee90f12e8c03621b341fc7beb9c50eb47baf
parent10914c783fe2ea3ee73a870599f30cedb7de96d0
Eliminate C variables unused since 4d0fbddde6c5dcb9 refactored HvFILL()

3 functions had C variables previously used to track whether the number of
hash chains have any entries. 4d0fbddde6c5dcb9 refactored the hash
implementation to calculated this on demand, instead of tracking changes to
it on hash updates. That change missed eliminating those variables, as
gcc prior to 4.6.0 didn't actually warn that they weren't used, because
(technically) they aren't unused - they are assigned to, but never read.

gcc (at least 4.3.2 and 4.6.0) generates identical object code with/without
this change, implying that its optimiser correctly eliminates the code.
Other optimisers may be similar, in which case there's no runtime saving from
this change.
hv.c