vmservice: delete dead guestWaitForSSH + guestDial seams
VMService carried guestWaitForSSH and guestDial fields + matching constructor args ever since the daemon split, but nothing on VMService ever read them. The live guest-SSH path runs on *Daemon (d.waitForGuestSSH / d.dialGuest in guest_ssh.go); WorkspaceService reaches those through closures wired in wireServices. So the VMService copies were refactor residue: they made the service look more decoupled than it actually is, and any future test that stubbed VMService.guestDial would be stubbing nothing. Delete the fields, the deps entries, the newVMService assignments, and the wireServices passes. Real seams on *Daemon are unchanged — those are the ones tests (e.g. workspace_test.go) already set directly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
bbd187391e
commit
3aec590deb
2 changed files with 0 additions and 10 deletions
|
|
@ -653,8 +653,6 @@ func wireServices(d *Daemon) {
|
|||
net: d.net,
|
||||
img: d.img,
|
||||
ws: d.ws,
|
||||
guestWaitForSSH: d.guestWaitForSSH,
|
||||
guestDial: d.guestDial,
|
||||
capHooks: d.buildCapabilityHooks(),
|
||||
beginOperation: d.beginOperation,
|
||||
vsockHostDevice: defaultVsockHostDevice,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue