Skip to content

Commit

Permalink
Remove unused arguments for DiskExtras
Browse files Browse the repository at this point in the history
discard/io are not optionally shown.
  • Loading branch information
jelly committed Oct 1, 2024
1 parent 11be3fa commit 366863c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/vm/disks/vmDiskColumns.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ DiskSourceCell.propTypes = {
idPrefix: PropTypes.string.isRequired,
};

export const DiskExtras = ({ idPrefix, cache, type, io, discard, serial }) => {
export const DiskExtras = ({ idPrefix, cache, type, serial }) => {
const addOptional = (chunks, value, type, descr) => {
if (value) {
chunks.push(
Expand All @@ -110,8 +110,8 @@ export const DiskExtras = ({ idPrefix, cache, type, io, discard, serial }) => {

DiskExtras.propTypes = {
cache: PropTypes.string,
io: PropTypes.string,
discard: PropTypes.string,
serial: PropTypes.string,
type: PropTypes.string,
idPrefix: PropTypes.string.isRequired,
};

Expand Down
2 changes: 0 additions & 2 deletions src/components/vm/disks/vmDisksCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ export const VmDisksCard = ({ vm, vms, disks, renderCapacity, supportedDiskBusTy
title: <DiskExtras idPrefix={idPrefixRow}
cache={disk.driver.cache}
type={disk.driver.type}
io={disk.driver.io}
discard={disk.driver.discard}
serial={disk.serial} />
});
}
Expand Down

0 comments on commit 366863c

Please sign in to comment.