Removed useless code from Template::getData()