From 5cc55e34258c103c241528dedfe3306f329768a7 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:56:28 +0700 Subject: [PATCH] remove useless stuff --- .config/ags/services/indicator.js | 3 --- .config/ags/services/todo.js | 6 ------ .config/ags/services/wallpaper.js | 9 +-------- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/.config/ags/services/indicator.js b/.config/ags/services/indicator.js index f74f2a1a..dfe141ee 100644 --- a/.config/ags/services/indicator.js +++ b/.config/ags/services/indicator.js @@ -1,8 +1,5 @@ import Service from 'resource:///com/github/Aylur/ags/service.js'; import * as Utils from 'resource:///com/github/Aylur/ags/utils.js'; -const { exec, execAsync } = Utils; - -const clamp = (num, min, max) => Math.min(Math.max(num, min), max); class IndicatorService extends Service { static { diff --git a/.config/ags/services/todo.js b/.config/ags/services/todo.js index 377fd8c2..9ceff5dd 100644 --- a/.config/ags/services/todo.js +++ b/.config/ags/services/todo.js @@ -3,12 +3,6 @@ import Service from 'resource:///com/github/Aylur/ags/service.js'; import * as Utils from 'resource:///com/github/Aylur/ags/utils.js'; const { exec, execAsync } = Utils; -const clamp = (num, min, max) => Math.min(Math.max(num, min), max); -function fileExists(filePath) { - let file = Gio.File.new_for_path(filePath); - return file.query_exists(null); -} - class TodoService extends Service { static { Service.register( diff --git a/.config/ags/services/wallpaper.js b/.config/ags/services/wallpaper.js index 38cab9cb..e1bcac5c 100644 --- a/.config/ags/services/wallpaper.js +++ b/.config/ags/services/wallpaper.js @@ -1,16 +1,9 @@ -const { Gdk, Gio, GLib } = imports.gi; +const { Gdk, GLib } = imports.gi; import Service from 'resource:///com/github/Aylur/ags/service.js'; import * as Utils from 'resource:///com/github/Aylur/ags/utils.js'; -const { exec, execAsync } = Utils; const WALLPAPER_CONFIG_PATH = `${GLib.get_user_cache_dir()}/ags/user/wallpaper.json`; -const clamp = (num, min, max) => Math.min(Math.max(num, min), max); -function fileExists(filePath) { - let file = Gio.File.new_for_path(filePath); - return file.query_exists(null); -} - class WallpaperService extends Service { static { Service.register(