remove unused 3d code