Skip to content

Commit 4e3ceee

Browse files
authored
Merge pull request #7 from TNK-Studio/dev
[RM] remove unuse func
2 parents 5869ff6 + 9a09082 commit 4e3ceee

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

core/sshd/sshd.go

-8
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,13 @@ package sshd
22

33
import (
44
"fmt"
5-
"os"
6-
"syscall"
7-
"unsafe"
85

96
"github.com/TNK-Studio/gortal/utils"
107
"github.com/fatih/color"
118
"github.com/gliderlabs/ssh"
129
"github.com/helloyi/go-sshclient"
1310
)
1411

15-
func setWinsize(f *os.File, w, h int) {
16-
syscall.Syscall(syscall.SYS_IOCTL, f.Fd(), uintptr(syscall.TIOCSWINSZ),
17-
uintptr(unsafe.Pointer(&struct{ h, w, x, y uint16 }{uint16(h), uint16(w), 0, 0})))
18-
}
19-
2012
// GetClientByPasswd GetClientByPasswd
2113
func GetClientByPasswd(username, host string, port int, passwd string) (*sshclient.Client, error) {
2214
client, err := sshclient.DialWithPasswd(

0 commit comments

Comments
 (0)