Remove unused code from dbus module

This commit is contained in:
pipex 2022-10-14 19:34:56 -03:00
parent 4de816d1e9
commit 97ec2a4151

View File

@ -79,24 +79,6 @@ export async function stopSocket(socketName: string) {
return stopUnit(`${socketName}.socket`);
}
export async function enableService(serviceName: string) {
const systemd = await getSystemdInterface();
try {
systemd.EnableUnitFiles([`${serviceName}.service`], false, false);
} catch (e) {
throw new DbusError(e as DBusError);
}
}
export async function disableService(serviceName: string) {
const systemd = await getSystemdInterface();
try {
systemd.DisableUnitFiles([`${serviceName}.service`], false);
} catch (e) {
throw new DbusError(e as DBusError);
}
}
export const reboot = async () =>
setTimeout(async () => {
try {