From 22af44ac4944aa72c5a5506b7734551406b14e06 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 11 May 2020 16:13:29 -0400 Subject: [PATCH] DEV: Remove `Discourse.Mobile` --- app/assets/javascripts/discourse/app/lib/mobile.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/assets/javascripts/discourse/app/lib/mobile.js b/app/assets/javascripts/discourse/app/lib/mobile.js index 96ee5f7099d..511e269d83a 100644 --- a/app/assets/javascripts/discourse/app/lib/mobile.js +++ b/app/assets/javascripts/discourse/app/lib/mobile.js @@ -1,4 +1,3 @@ -import deprecated from "discourse-common/lib/deprecated"; import ENV from "discourse-common/config/environment"; let mobileForced = false; @@ -65,13 +64,4 @@ export function resetMobile() { mobileForced = false; } -Object.defineProperty(Discourse, "Mobile", { - get() { - deprecated( - "`Discourse.Mobile` is deprecated, use `this.site.mobileView` instead" - ); - return Mobile; - } -}); - export default Mobile;