diff --git a/udp/udp_linux_32.go b/udp/udp_linux_32.go index 14104a7a..0f153a49 100644 --- a/udp/udp_linux_32.go +++ b/udp/udp_linux_32.go @@ -78,19 +78,3 @@ func setMsgControllen(m *msghdr, n int) { func setCmsgLen(h *unix.Cmsghdr, n int) { h.Len = uint32(n) } - -func setIovLen(v *iovec, n int) { - v.Len = uint32(n) -} - -func setMsgIovlen(m *msghdr, n int) { - m.Iovlen = uint32(n) -} - -func setMsgControllen(m *msghdr, n int) { - m.Controllen = uint32(n) -} - -func setCmsgLen(h *unix.Cmsghdr, n int) { - h.Len = uint32(n) -} diff --git a/udp/udp_linux_64.go b/udp/udp_linux_64.go index 85022b05..dc373538 100644 --- a/udp/udp_linux_64.go +++ b/udp/udp_linux_64.go @@ -81,19 +81,3 @@ func setMsgControllen(m *msghdr, n int) { func setCmsgLen(h *unix.Cmsghdr, n int) { h.Len = uint64(n) } - -func setIovLen(v *iovec, n int) { - v.Len = uint64(n) -} - -func setMsgIovlen(m *msghdr, n int) { - m.Iovlen = uint64(n) -} - -func setMsgControllen(m *msghdr, n int) { - m.Controllen = uint64(n) -} - -func setCmsgLen(h *unix.Cmsghdr, n int) { - h.Len = uint64(n) -}