aboutsummaryrefslogtreecommitdiff
path: root/src/devices/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/network.cpp')
-rw-r--r--src/devices/network.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/devices/network.cpp b/src/devices/network.cpp
index 3b67610..9d20c5c 100644
--- a/src/devices/network.cpp
+++ b/src/devices/network.cpp
@@ -55,22 +55,6 @@ extern "C" {
static map<string, class network *> nics;
-#ifdef DISABLE_TRYCATCH
-
-static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep,
- __u32 speed)
-{
-
- ep->speed = (__u16)speed;
- ep->speed_hi = (__u16)(speed >> 16);
-}
-
-static inline __u32 ethtool_cmd_speed(struct ethtool_cmd *ep)
-{
- return (ep->speed_hi << 16) | ep->speed;
-}
-
-#endif
static void do_proc_net_dev(void)
{