Skip to content

Commit af6fd99

Browse files
committed
remove unused component and functions
Signed-off-by: David Edler <[email protected]>
1 parent 0b4d11b commit af6fd99

File tree

2 files changed

+0
-103
lines changed

2 files changed

+0
-103
lines changed

src/pages/instances/InstanceOverviewDevices.tsx

Lines changed: 0 additions & 90 deletions
This file was deleted.

src/util/helpers.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { LxdNetwork } from "types/network";
66
import { LxdStorageVolume } from "types/storage";
77
import { Dispatch, SetStateAction } from "react";
88
import crypto from "crypto";
9-
import { LxdDeviceValue } from "types/device";
109
import { isDiskDevice } from "./devices";
1110
import { isRootDisk } from "./instanceValidation";
1211
import { FormDevice } from "./formDevices";
@@ -322,18 +321,6 @@ export const getUniqueResourceName = (
322321
return name;
323322
};
324323

325-
export const getInstanceDevices = (
326-
instance: LxdInstance,
327-
): [string, LxdDeviceValue][] => {
328-
return Object.entries(instance.expanded_devices ?? {});
329-
};
330-
331-
export const getProfileDevices = (
332-
profile: LxdProfile,
333-
): [string, LxdDeviceValue][] => {
334-
return Object.entries(profile.devices ?? {});
335-
};
336-
337324
export const getRootPool = (instance: LxdInstance): string => {
338325
const rootStorage = Object.values(instance.expanded_devices ?? {})
339326
.filter(isDiskDevice)

0 commit comments

Comments
 (0)