From 389170610a5ea93ad31b4c97e4d6a00929d76ba4 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Fri, 24 Jul 2020 01:40:21 +0300 Subject: [PATCH] Remove leftovers --- src/components/playback/playbackmanager.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index cb1a91fb75..60e9f0f520 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -1,9 +1,6 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'playQueueManager', 'userSettings', 'globalize', 'connectionManager', 'loading', 'apphost', 'screenfull'], function (events, datetime, appSettings, itemHelper, pluginManager, PlayQueueManager, userSettings, globalize, connectionManager, loading, apphost, screenfull) { 'use strict'; - /** Delay time in ms for reportPlayback logging */ - const reportPlaybackLogDelay = 1e3; - function enableLocalPlaylistManagement(player) { if (player.getPlaylist) { @@ -43,12 +40,6 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla events.trigger(playbackManagerInstance, 'playerchange', [newPlayer, newTarget, previousPlayer]); } - /** Last invoked method */ - let reportPlaybackLastMethod; - - /** Last invoke time of method */ - let reportPlaybackLastTime; - function reportPlayback(playbackManagerInstance, state, player, reportPlaylist, serverId, method, progressEventName) { if (!serverId) { @@ -69,13 +60,6 @@ define(['events', 'datetime', 'appSettings', 'itemHelper', 'pluginManager', 'pla addPlaylistToPlaybackReport(playbackManagerInstance, info, player, serverId); } - const now = (new Date).getTime(); - - if (method !== reportPlaybackLastMethod || now - (reportPlaybackLastTime || 0) >= reportPlaybackLogDelay) { - reportPlaybackLastMethod = method; - reportPlaybackLastTime = now; - } - var apiClient = connectionManager.getApiClient(serverId); var reportPlaybackPromise = apiClient[method](info); // Notify that report has been sent