remove unused allocation functions

The design needs to be changed and the first step is cutting down the
API is what is currently required.