Skip to content

Commit

Permalink
remove unused component and functions
Browse files Browse the repository at this point in the history
Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Nov 22, 2024
1 parent 0b4d11b commit af6fd99
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 103 deletions.
90 changes: 0 additions & 90 deletions src/pages/instances/InstanceOverviewDevices.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions src/util/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { LxdNetwork } from "types/network";
import { LxdStorageVolume } from "types/storage";
import { Dispatch, SetStateAction } from "react";
import crypto from "crypto";
import { LxdDeviceValue } from "types/device";
import { isDiskDevice } from "./devices";
import { isRootDisk } from "./instanceValidation";
import { FormDevice } from "./formDevices";
Expand Down Expand Up @@ -322,18 +321,6 @@ export const getUniqueResourceName = (
return name;
};

export const getInstanceDevices = (
instance: LxdInstance,
): [string, LxdDeviceValue][] => {
return Object.entries(instance.expanded_devices ?? {});
};

export const getProfileDevices = (
profile: LxdProfile,
): [string, LxdDeviceValue][] => {
return Object.entries(profile.devices ?? {});
};

export const getRootPool = (instance: LxdInstance): string => {
const rootStorage = Object.values(instance.expanded_devices ?? {})
.filter(isDiskDevice)
Expand Down

0 comments on commit af6fd99

Please sign in to comment.