Module: wine Branch: master Commit: 0592ca5fb0524e56af3302fd7e44c85075e2a0c1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0592ca5fb0524e56af3302fd7e...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Thu Jan 8 20:15:00 2009 +0000
iphlpapi: Remove unused function.
---
dlls/iphlpapi/ifenum.c | 11 ----------- dlls/iphlpapi/ifenum.h | 7 +++---- 2 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/dlls/iphlpapi/ifenum.c b/dlls/iphlpapi/ifenum.c index 2929b70..f36fc99 100644 --- a/dlls/iphlpapi/ifenum.c +++ b/dlls/iphlpapi/ifenum.c @@ -652,17 +652,6 @@ DWORD getInterfaceEntryByName(const char *name, PMIB_IFROW entry) return ret; }
-DWORD getInterfaceEntryByIndex(DWORD index, PMIB_IFROW entry) -{ - char nameBuf[IF_NAMESIZE]; - char *name = getInterfaceNameByIndex(index, nameBuf); - - if (name) - return getInterfaceEntryByName(name, entry); - else - return ERROR_INVALID_DATA; -} - /* Enumerates the IP addresses in the system using SIOCGIFCONF, returning * the count to you in *pcAddresses. It also returns to you the struct ifconf * used by the call to ioctl, so that you may process the addresses further. diff --git a/dlls/iphlpapi/ifenum.h b/dlls/iphlpapi/ifenum.h index 775244c..d471750 100644 --- a/dlls/iphlpapi/ifenum.h +++ b/dlls/iphlpapi/ifenum.h @@ -91,13 +91,12 @@ DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr, DWORD getInterfacePhysicalByIndex(DWORD index, PDWORD len, PBYTE addr, PDWORD type);
-/* Fills in the MIB_IFROW by name/index. Doesn't fill in interface statistics, +/* Fills in the MIB_IFROW by name. Doesn't fill in interface statistics, * see ipstats.h for that. - * Returns ERROR_INVALID_PARAMETER if name or entry is NULL, ERROR_INVALID_DATA - * if name/index isn't valid, and NO_ERROR otherwise. + * Returns ERROR_INVALID_PARAMETER if name is NULL, ERROR_INVALID_DATA + * if name isn't valid, and NO_ERROR otherwise. */ DWORD getInterfaceEntryByName(const char *name, PMIB_IFROW entry); -DWORD getInterfaceEntryByIndex(DWORD index, PMIB_IFROW entry);
DWORD getNumIPAddresses(void);