From 6c47f09d60bddbb13007c9d7c6fb65306bed8776 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 31 Jan 2019 09:15:13 +0100 Subject: Remove unused OC._matchMedia helper Signed-off-by: Christoph Wurst --- core/js/js.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index de27ff7a926..bc4a8413e0b 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -753,20 +753,6 @@ Object.assign(window.OC, { } }, - /** - * Wrapper for matchMedia - * - * This is makes it possible for unit tests to - * stub matchMedia (which doesn't work in PhantomJS) - * @private - */ - _matchMedia: function(media) { - if (window.matchMedia) { - return window.matchMedia(media); - } - return false; - }, - /** * Returns the user's locale as a BCP 47 compliant language tag * -- cgit v1.2.3