Fix compilation error

Some dead code removed on trunk wasn't dead on this branch.

Target: 2.8
Patch: none
Merge pull request #735 from gbehrmann/fix/2.8/rb7187b

Fix compilation error