tk: remove dead code block