Remove unused error handling