Removed unwanted dispose function