(D3D) More cleanups of dead code`