Skip to content

Commit

Permalink
Removed ifdefs as it is assumed the deprecation macro to be undefined…
Browse files Browse the repository at this point in the history
… externally.
  • Loading branch information
Dimi1010 committed May 27, 2024
1 parent f03bb13 commit 541b198
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions Pcap++/header/PcapLiveDeviceList.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
6 changes: 0 additions & 6 deletions Pcap++/header/PcapRemoteDeviceList.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 541b198

Please sign in to comment.