From 79b1f620a3f7dbe47596a2c0e787b80186c802de Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Mon, 10 Feb 2025 22:27:16 +0000 Subject: [PATCH] remove unused utils --- packages/app/src/utils/haptics/index.js | 34 ------------------------- packages/app/src/utils/index.js | 3 +-- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100755 packages/app/src/utils/haptics/index.js diff --git a/packages/app/src/utils/haptics/index.js b/packages/app/src/utils/haptics/index.js deleted file mode 100755 index ddabdd28..00000000 --- a/packages/app/src/utils/haptics/index.js +++ /dev/null @@ -1,34 +0,0 @@ -import { Haptics, ImpactStyle } from "@capacitor/haptics" - -export default { - selectionStart: async () => { - const enabled = window.app.cores.settings.get("haptic_feedback") - - if (enabled) { - await Haptics.selectionStart() - } - }, - selectionChanged: async () => { - const enabled = window.app.cores.settings.get("haptic_feedback") - - if (enabled) { - await Haptics.selectionChanged() - } - }, - selectionEnd: async () => { - const enabled = window.app.cores.settings.get("haptic_feedback") - - if (enabled) { - await Haptics.selectionEnd() - } - }, - impact: async (style = "Medium") => { - const enabled = window.app.cores.settings.get("haptic_feedback") - - if (enabled) { - style = String(style).toTitleCase() - - await Haptics.impact({ style: ImpactStyle[style] }) - } - } -} \ No newline at end of file diff --git a/packages/app/src/utils/index.js b/packages/app/src/utils/index.js index 5bf0b661..b4558a79 100755 --- a/packages/app/src/utils/index.js +++ b/packages/app/src/utils/index.js @@ -1,8 +1,7 @@ export { default as findChildById } from "./findChildById" export { default as cursorPosition } from "./cursorPosition" export { default as getBase64 } from "./getBase64" -export { default as Haptics } from "./haptics" export { default as processString } from "./processString" export { default as deleteInternalStorage } from "./deleteInternalStorage" export { default as handleOpenDevTools } from "./handleOpenDevTools" -export { default as copyToClipboard } from "./copyToClipboard" \ No newline at end of file +export { default as copyToClipboard } from "./copyToClipboard"