refactor: removed unnecessary code

This commit is contained in:
Ronny Mikalsen 2022-03-02 10:10:30 +01:00
parent 47cc04ff53
commit 0f984bd3b3

View File

@ -1400,20 +1400,8 @@
* @function
*/
removeContact: function() {
if (
(this.type === "mouse" ||
this.type === "pen" ||
this.type === "touch") &&
this.contacts > 0
) {
if ( this.contacts > 0 ) {
--this.contacts;
if (this.contacts < 0) {
$.console.warn(
"GesturePointList.removeContact() Implausible contacts value"
);
this.contacts = 0;
}
}
}
};