refactor(core,grdp): 删除未使用的死代码

- 移除 BaseScanStrategy.LogPluginInfoWithPort 方法(无调用者)
- 移除 mcs.go 中被注释的旧 connect 函数实现
This commit is contained in:
ZacharyZcR
2026-01-21 23:26:12 +08:00
parent 8260bee61c
commit 713c86d84e
2 changed files with 0 additions and 59 deletions
-27
View File
@@ -277,33 +277,6 @@ func (c *MCSClient) SetClientCoreData(width, height uint16) {
c.clientCoreData.DesktopHeight = height
}
//func (c *MCSClient) connect(selectedProtocol uint32) {
// glog.Debug("mcs client on connect", selectedProtocol)
// c.clientCoreData.ServerSelectedProtocol = selectedProtocol
//
// // sendConnectInitial
// userDataBuff := bytes.Buffer{}
// userDataBuff.Write(c.clientCoreData.Pack())
// userDataBuff.Write(c.clientNetworkData.Pack())
// userDataBuff.Write(c.clientSecurityData.Pack())
//
// ccReq := gcc.MakeConferenceCreateRequest(userDataBuff.Bytes())
// connectInitial := NewConnectInitial(ccReq)
// connectInitialBerEncoded := connectInitial.BER()
//
// dataBuff := &bytes.Buffer{}
// ber.WriteApplicationTag(uint8(MCS_TYPE_CONNECT_INITIAL), len(connectInitialBerEncoded), dataBuff)
// dataBuff.Write(connectInitialBerEncoded)
//
// _, err := c.transport.Write(dataBuff.Bytes())
// if err != nil {
// c.Emit("error", errors.New(fmt.Sprintf("mcs sendConnectInitial write error %v", err)))
// return
// }
// glog.Debug("mcs wait for data event")
// c.transport.Once("data", c.recvConnectResponse)
//}
func (c *MCSClient) connect(selectedProtocol uint32) {
glog.Debug("mcs client on connect", selectedProtocol)
c.clientCoreData.ServerSelectedProtocol = selectedProtocol