Remove unnecessary, redundant timing functions

This commit is contained in:
Daniel Sheeler
2024-04-23 05:31:50 -05:00
parent 05be619b7f
commit da8e791825
2 changed files with 0 additions and 18 deletions
-1
View File
@@ -14,7 +14,6 @@ import {Extension} from 'resource:///org/gnome/shell/extensions/extension.js';
import { md5 } from './lib/md5.js'
import { gr_log, gr_debug } from './utils/logger.js'
import { setInterval, clearInterval } from './utils/timing.js'
export default class GravatarExtension extends Extension {
constructor(metadata) {
-17
View File
@@ -1,17 +0,0 @@
'use strict';
import GLib from 'gi://GLib';
/* exported setInterval */
export function setInterval(func, millis) {
return GLib.timeout_add(GLib.PRIORITY_DEFAULT, millis, () => {
func();
// Repeat
return true;
});
}
/* exported clearInterval */
export function clearInterval(id) {
return GLib.Source.remove(id);
}