From 541b1985e22b6c7ee778aa8b60f166e93dc1850d Mon Sep 17 00:00:00 2001 From: Dimitar Krastev Date: Mon, 27 May 2024 22:25:52 +0300 Subject: [PATCH] Removed ifdefs as it is assumed the deprecation macro to be undefined externally. --- Pcap++/header/PcapLiveDeviceList.h | 6 ------ Pcap++/header/PcapRemoteDeviceList.h | 6 ------ 2 files changed, 12 deletions(-) diff --git a/Pcap++/header/PcapLiveDeviceList.h b/Pcap++/header/PcapLiveDeviceList.h index 415eddc930..87ff2e93de 100644 --- a/Pcap++/header/PcapLiveDeviceList.h +++ b/Pcap++/header/PcapLiveDeviceList.h @@ -9,10 +9,7 @@ /// @file -#ifndef PCPP_DEPRECATED_RAW_PTR_API -#define PCPP_DEPRECATED_RAW_PTR_API__LOCAL_DEFINE #define PCPP_DEPRECATED_RAW_PTR_API PCPP_DEPRECATED("This method is deprecated in favor of the SmartPtrAPI overload.") -#endif // !PCPP_DEPRECATED_RAW_PTR_API /** * \namespace pcpp @@ -187,7 +184,4 @@ namespace pcpp } // namespace pcpp -#ifdef PCPP_DEPRECATED_RAW_PTR_API__LOCAL_DEFINE #undef PCPP_DEPRECATED_RAW_PTR_API -#undef PCPP_DEPRECATED_RAW_PTR_API__LOCAL_DEFINE -#endif // PCPP_DEPRECATED_RAW_PTR_API_LOCAL_DEFINE diff --git a/Pcap++/header/PcapRemoteDeviceList.h b/Pcap++/header/PcapRemoteDeviceList.h index b4ebf5189e..4b428e9ccb 100644 --- a/Pcap++/header/PcapRemoteDeviceList.h +++ b/Pcap++/header/PcapRemoteDeviceList.h @@ -9,10 +9,7 @@ /// @file -#ifndef PCPP_DEPRECATED_RAW_PTR_API -#define PCPP_DEPRECATED_RAW_PTR_API__LOCAL_DEFINE #define PCPP_DEPRECATED_RAW_PTR_API PCPP_DEPRECATED("This method is deprecated in favor of the SmartPtrAPI overload.") -#endif // !PCPP_DEPRECATED_RAW_PTR_API /** * \namespace pcpp @@ -257,9 +254,6 @@ namespace pcpp } // namespace pcpp -#ifdef PCPP_DEPRECATED_RAW_PTR_API__LOCAL_DEFINE #undef PCPP_DEPRECATED_RAW_PTR_API -#undef PCPP_DEPRECATED_RAW_PTR_API__LOCAL_DEFINE -#endif // PCPP_DEPRECATED_RAW_PTR_API_LOCAL_DEFINE #endif // _WIN32