Skip to content

Commit

Permalink
Remove unused method "canRunXhyve"
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Feb 15, 2023
1 parent 65c599a commit 24f8268
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
6 changes: 0 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions src/architecture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export abstract class Architecture {
abstract get cpu(): string
abstract get machineType(): string
abstract get accelerator(): vm.Accelerator
abstract get canRunXhyve(): boolean
abstract get hypervisor(): hypervisor.Hypervisor
abstract get efiHypervisor(): hypervisor.Hypervisor

Expand Down Expand Up @@ -79,10 +78,6 @@ export abstract class Architecture {
return vm.Accelerator.tcg
}

override get canRunXhyve(): boolean {
return false
}

override get hypervisor(): hypervisor.Hypervisor {
return new hypervisor.Qemu()
}
Expand Down Expand Up @@ -113,10 +108,6 @@ export abstract class Architecture {
return this.hostQemu.accelerator
}

override get canRunXhyve(): boolean {
return true
}

override get hypervisor(): hypervisor.Hypervisor {
return this.host.hypervisor
}
Expand Down

0 comments on commit 24f8268

Please sign in to comment.