refactor(settings): remove unused cleanupFullDocker function and streamline imports

This commit is contained in:
Mauricio Siu
2025-12-06 17:54:25 -06:00
parent f91a3aab25
commit 9394d97163
+1 -9
View File
@@ -1,6 +1,7 @@
import { readdirSync } from "node:fs"; import { readdirSync } from "node:fs";
import { join } from "node:path"; import { join } from "node:path";
import { docker } from "@dokploy/server/constants"; import { docker } from "@dokploy/server/constants";
import { cleanupAll } from "@dokploy/server/utils/docker/utils";
import { import {
execAsync, execAsync,
execAsyncRemote, execAsyncRemote,
@@ -10,7 +11,6 @@ import {
initializeTraefikService, initializeTraefikService,
type TraefikOptions, type TraefikOptions,
} from "../setup/traefik-setup"; } from "../setup/traefik-setup";
import { cleanupAll } from "@dokploy/server/utils/docker/utils";
export interface IUpdateData { export interface IUpdateData {
latestVersion: string | null; latestVersion: string | null;
@@ -216,14 +216,6 @@ echo "$json_output"
return result; return result;
}; };
/**
* This function is not currently used anywhere, but it remains here because removing it would be risky.
*
* https://github.com/Dokploy/dokploy/pull/3064
* https://github.com/fir4tozden
*/
export const cleanupFullDocker = cleanupAll;
export const getDockerResourceType = async ( export const getDockerResourceType = async (
resourceName: string, resourceName: string,
serverId?: string, serverId?: string,