del unused method of error class