tuned: remove dead code, use library function