In that case I think it should stay. According to the documentation it isn't marked as obsolete, so let it hang around for compatibility. 

However, the comment is a bit misleading, since it isn't "only used for DOS". Just remove the "Set screen mode." bit instead.