r300g: remove redundant code and clean up