Remove unused code.

Signed-off-by: Brad Hards <bradh@frogmouth.net>