瀏覽代碼

Merge pull request #1777 from yanCode/chore/cleanup

chore: remove unused code
Yifei Zhang 2 年之前
父節點
當前提交
6b5e5a15d7
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      app/utils.ts

+ 0 - 7
app/utils.ts

@@ -98,13 +98,6 @@ export function useMobileScreen() {
   return width <= MOBILE_MAX_WIDTH;
 }
 
-export function isMobileScreen() {
-  if (typeof window === "undefined") {
-    return false;
-  }
-  return window.innerWidth <= MOBILE_MAX_WIDTH;
-}
-
 export function isFirefox() {
   return (
     typeof navigator !== "undefined" && /firefox/i.test(navigator.userAgent)