Skip to content

Commit

Permalink
Remove unused getopt
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Mar 23, 2024
1 parent 47c1158 commit 3430d04
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 174 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Expand Up @@ -599,8 +599,6 @@ if(NOT WIN32)
endif()
endif()

check_symbol_exists(getopt unistd.h HAVE_GETOPT)


# Common sources used by both the OpenAL implementation library, the OpenAL
# router, and certain tools and examples.
Expand Down Expand Up @@ -1661,9 +1659,6 @@ if(ALSOFT_UTILS)
utils/makemhr/loadsofa.h
utils/makemhr/makemhr.cpp
utils/makemhr/makemhr.h)
if(NOT HAVE_GETOPT)
set(MAKEMHR_SRCS ${MAKEMHR_SRCS} utils/getopt.c utils/getopt.h)
endif()
add_executable(makemhr ${MAKEMHR_SRCS})
target_compile_definitions(makemhr PRIVATE ${CPP_DEFS})
target_include_directories(makemhr
Expand Down
137 changes: 0 additions & 137 deletions utils/getopt.c

This file was deleted.

26 changes: 0 additions & 26 deletions utils/getopt.h

This file was deleted.

6 changes: 0 additions & 6 deletions utils/makemhr/makemhr.cpp
Expand Up @@ -85,12 +85,6 @@
#include <utility>
#include <vector>

#ifdef HAVE_GETOPT
#include <unistd.h>
#else
#include "../getopt.h"
#endif

#include "alcomplex.h"
#include "alnumbers.h"
#include "alnumeric.h"
Expand Down

0 comments on commit 3430d04

Please sign in to comment.