Merge pull request #13937 from nextcloud/refactor/remove-unused-matchmedia

Remove unused OC._matchMedia helper
This commit is contained in:
Christoph Wurst 2019-01-31 10:28:02 +01:00 committed by GitHub
commit 5c23f975d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
*