Remove unused render code