Skip to content

Commit

Permalink
Remove the libnanomsg compatibility layer
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Oct 23, 2024
1 parent beca672 commit 4de579a
Show file tree
Hide file tree
Showing 27 changed files with 0 additions and 3,882 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ target_compile_definitions(nng_private INTERFACE NNG_PRIVATE)
if (NNG_ELIDE_DEPRECATED)
target_compile_definitions(nng PRIVATE NNG_ELIDE_DEPRECATED)
endif()
if (NNG_ENABLE_COMPAT)
target_compile_definitions(nng PRIVATE NNG_ENABLE_COMPAT)
endif()


# We can use rlimit to configure the stack size for systems
# that have too small defaults. This is not used for Windows,
Expand Down
5 changes: 0 additions & 5 deletions cmake/NNGOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ option(NNG_ENABLE_COVERAGE "Enable coverage reporting." OFF)
# for the public library.
option(NNG_ELIDE_DEPRECATED "Elide deprecated functionality." OFF)

# Turning off the compatibility layer can save some space, and
# compilation time, but may break legacy applications It should
# be left enabled when building a shared library.
option(NNG_ENABLE_COMPAT "Enable legacy nanomsg API." ON)

option(NNG_ENABLE_STATS "Enable statistics." ON)
mark_as_advanced(NNG_ENABLE_STATS)

Expand Down
4 changes: 0 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ add_subdirectory(supplemental)
add_subdirectory(tools)
add_subdirectory(testing)

if (NNG_ENABLE_COMPAT)
add_subdirectory(compat)
endif()

# When building shared libraries we prefer to suppress default symbol
# visibility, so that only the symbols that should be exposed in the
# resulting library are. This is the default with Windows.
Expand Down
15 changes: 0 additions & 15 deletions src/compat/nanomsg/CMakeLists.txt

This file was deleted.

92 changes: 0 additions & 92 deletions src/compat/nanomsg/compat_msg_test.c

This file was deleted.

233 changes: 0 additions & 233 deletions src/compat/nanomsg/compat_tcp_test.c

This file was deleted.

Loading

0 comments on commit 4de579a

Please sign in to comment.