Remove some unused drawing code