Remove unnecessary, redundant timing functions
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user