diff --git a/lms/static/js/student_account/views/LoginView.js b/lms/static/js/student_account/views/LoginView.js index 7fe1f004ec..9997817636 100644 --- a/lms/static/js/student_account/views/LoginView.js +++ b/lms/static/js/student_account/views/LoginView.js @@ -189,14 +189,6 @@ }, saveError: function(error) { - if (error.responseJSON !== undefined) { - this.saveErrorWithoutShim(error); - } else { - this.saveErrorWithShim(error); - } - }, - - saveErrorWithoutShim: function(error) { var errorCode; var msg; if (error.status === 0) { @@ -233,41 +225,6 @@ this.toggleDisableButton(false); }, - saveErrorWithShim: function(error) { - var msg = error.responseText; - if (error.status === 0) { - msg = gettext('An error has occurred. Check your Internet connection and try again.'); - } else if (error.status === 500) { - msg = gettext('An error has occurred. Try refreshing the page, or check your Internet connection.'); // eslint-disable-line max-len - } - this.errors = [ - StringUtils.interpolate( - '