kalua: links: remove some dead code