Remove unused code
This commit is contained in:
@@ -310,7 +310,6 @@ class TpInput extends BaseElement {
|
||||
const thisChar = String.fromCharCode(e.charCode);
|
||||
if (this._isPrintable(e) && !regex.test(thisChar)) {
|
||||
e.preventDefault();
|
||||
this._announceInvalidCharacter('Invalid character ' + thisChar + ' not entered.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -449,10 +448,6 @@ class TpInput extends BaseElement {
|
||||
}
|
||||
}
|
||||
|
||||
_announceInvalidCharacter(message) {
|
||||
this.fire('iron-announce', { text: message });
|
||||
}
|
||||
|
||||
_optionalChanged(oldValue) {
|
||||
if (oldValue === undefined) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user