Remove unused code

* configure.ac (AC_CHECK_TYPES): Remove struct opthdr and
struct t_opthdr.
* net.c (print_sock_optmgmt): Remove.
diff --git a/configure.ac b/configure.ac
index 96e72ca..6467a00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -195,8 +195,6 @@
 #include <netinet/in.h>])
 AC_LITTLE_ENDIAN_LONG_LONG
 AC_OFF_T_IS_LONG_LONG
-AC_CHECK_TYPES([struct opthdr],,, [#include <sys/socket.h>])
-AC_CHECK_TYPES([struct t_opthdr],,, [#include <sys/tiuser.h>])
 
 AC_CHECK_FUNCS(m4_normalize([
 	fork
diff --git a/net.c b/net.c
index 9ae783a..652b9af 100644
--- a/net.c
+++ b/net.c
@@ -2287,41 +2287,6 @@
 	return 0;
 }
 
-#ifdef HAVE_STRUCT_OPTHDR
-
-void
-print_sock_optmgmt(struct tcb *tcp, long addr, int len)
-{
-	int c = 0;
-	struct opthdr hdr;
-
-	while (len >= (int) sizeof hdr) {
-		if (umove(tcp, addr, &hdr) < 0) break;
-		if (c++) {
-			tprints(", ");
-		}
-		else if (len > hdr.len + sizeof hdr) {
-			tprints("[");
-		}
-		tprints("{");
-		addr += sizeof hdr;
-		len -= sizeof hdr;
-		printsockopt(tcp, hdr.level, hdr.name, addr, hdr.len);
-		if (hdr.len > 0) {
-			addr += hdr.len;
-			len -= hdr.len;
-		}
-		tprints("}");
-	}
-	if (len > 0) {
-		if (c++) tprints(", ");
-		printstr(tcp, addr, len);
-	}
-	if (c > 1) tprints("]");
-}
-
-#endif
-
 int
 sys_setsockopt(struct tcb *tcp)
 {