Skip to content

sshutil: remove the unused IsSSHCygwin - #5301

Merged
AkihiroSuda merged 1 commit into
lima-vm:masterfrom
jandubois:sshutil-remove-issshcygwin
Jul 25, 2026
Merged

AkihiroSuda merged 1 commit into
lima-vm:masterfrom
jandubois:sshutil-remove-issshcygwin

Conversation

@jandubois

@jandubois jandubois commented Jul 21, 2026 •

Copy link
Copy Markdown
Member

PathForSSH was its only caller. It switched to cygpathForSSH, which returns the sibling cygpath it needs, and IsSSHCygwin has had no caller since it landed in #5205.

The two assertions dropped from TestCygpathForSSH re-checked the boolean that the cygpathForSSH assertion on the preceding line already covers, so coverage is unchanged.

Part of a series continuing the native Windows OpenSSH work from #5205 and #5270: #5298, #5299, #5300, #5301. They are independent and can merge in any order. #5298 and #5301 both touch pkg/sshutil/sshutil.go, in different functions, and apply cleanly in either order.

PathForSSH was its only caller. It switched to cygpathForSSH, which
returns the sibling cygpath it needs, and IsSSHCygwin has had no caller
since.

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
@AkihiroSuda

Copy link
Copy Markdown
Member

Still draft?

@jandubois
jandubois marked this pull request as ready for review July 21, 2026 16:31
@jandubois jandubois added this to the v2.3.0 milestone Jul 21, 2026

@AkihiroSuda AkihiroSuda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda
AkihiroSuda merged commit 944754b into lima-vm:master Jul 25, 2026
60 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants