From c26d91d6bdbe832edf8cab36524628abb33094e0 Mon Sep 17 00:00:00 2001 From: Val Date: Fri, 22 Sep 2023 17:54:52 +0200 Subject: [PATCH] net/tstun: remove unused function DefaultMTU() Now that corp is updated, remove the shim code to bridge the rename from DefaultMTU() to DefaultTUNMTU. Updates #311 Signed-off-by: Val --- net/tstun/mtu.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/net/tstun/mtu.go b/net/tstun/mtu.go index 9af548798..07b6ee424 100644 --- a/net/tstun/mtu.go +++ b/net/tstun/mtu.go @@ -141,12 +141,6 @@ func DefaultTUNMTU() TUNMTU { return safeTUNMTU } -// Temporary workaround for code on corp that uses this function name. -// TODO(val): Remove as soon as corp OSS is updated. -func DefaultMTU() uint32 { - return uint32(DefaultTUNMTU()) -} - // DefaultWireMTU returns the default TUN MTU, adjusted for wireguard // overhead. func DefaultWireMTU() WireMTU {