D: remove unused code relate to os
D: remove unused dependencies