[lib] removed dead code