Remove deprecated and empty header.
Avoid undefined behavior on empty return for non-debug runs
Get rid of "unused parameter" warnings
Class with virtual functions needs virtual (or protected) dtor
{sub,}boundaryInfo now returns const reference instead of pointer

Boundary info was constructed on every call before
which accounted for 40% of the overall runtime.