From 49098d6bbf00daf6aec002ff387c189cdfbd5834 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 14 Jan 2022 11:33:05 +0100 Subject: Remove unused function --- client/src/assets/player/peertube-plugin.ts | 6 ------ 1 file changed, 6 deletions(-) (limited to 'client/src/assets/player') diff --git a/client/src/assets/player/peertube-plugin.ts b/client/src/assets/player/peertube-plugin.ts index 272f5353d..fd612dd4f 100644 --- a/client/src/assets/player/peertube-plugin.ts +++ b/client/src/assets/player/peertube-plugin.ts @@ -252,12 +252,6 @@ class PeerTubePlugin extends Plugin { logger('Set player inactivity to ' + timeout) } - private isTouchEnabled () { - return ('ontouchstart' in window) || - navigator.maxTouchPoints > 0 || - (navigator as any).msMaxTouchPoints > 0 - } - private initCaptions () { for (const caption of this.videoCaptions) { this.player.addRemoteTextTrack({ -- cgit v1.2.3