Removed onPaint method definition