Skip to content

Commit 45dfd5d

Browse files
committed
chore: remove dead code from machine
Signed-off-by: Austin Vazquez <[email protected]>
1 parent 8d2124d commit 45dfd5d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

machine.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,6 @@ type VsockDevice struct {
277277
CID uint32
278278
}
279279

280-
// SocketPath returns the filesystem path to the socket used for VMM
281-
// communication
282-
func (m *Machine) socketPath() string {
283-
return m.Cfg.SocketPath
284-
}
285-
286280
// LogFile returns the filesystem path of the VMM log
287281
func (m *Machine) LogFile() string {
288282
return m.Cfg.LogFifo
@@ -787,14 +781,6 @@ func (m *Machine) createNetworkInterface(ctx context.Context, iface NetworkInter
787781
ifaceCfg.TxRateLimiter = iface.OutRateLimiter
788782
}
789783

790-
if iface.InRateLimiter != nil {
791-
ifaceCfg.RxRateLimiter = iface.InRateLimiter
792-
}
793-
794-
if iface.OutRateLimiter != nil {
795-
ifaceCfg.TxRateLimiter = iface.OutRateLimiter
796-
}
797-
798784
resp, err := m.client.PutGuestNetworkInterfaceByID(ctx, ifaceID, &ifaceCfg)
799785
if err == nil {
800786
m.logger.Debugf("PutGuestNetworkInterfaceByID: %s", resp.Error())

0 commit comments

Comments
 (0)