From 7cfcfc2f82c03d7101956418be669e0dbcfcdd8f Mon Sep 17 00:00:00 2001 From: Christian Ohm Date: Thu, 1 Jul 2010 19:46:31 +0000 Subject: [PATCH] Remove unused hton16. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/qt-trunk@11080 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/netplay/netplay.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/netplay/netplay.c b/lib/netplay/netplay.c index a67bf3770..6130305ce 100644 --- a/lib/netplay/netplay.c +++ b/lib/netplay/netplay.c @@ -298,14 +298,6 @@ static BOOL NET_fillBuffer(NETBUFSOCKET* bs, SocketSet* socket_set) return false; } -static uint16_t hton16(uint16_t h) -{ - uint8_t n[2] = {h>>8, h}; - uint16_t n_; - memcpy(&n_, n, 2); - return n_; -} - static uint16_t ntoh16(uint16_t n_) { uint8_t n[2];