Remove some dead code

There is still one block of unused code in parse_list(), since list-keys
functionality is currently disabled. It will be reenabled once list-keys
is fixed.