Skip to content

Commit

Permalink
remove dead code since #42586 [NFC] (#44782)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored Mar 29, 2022
1 parent ff0e25c commit c2cec7a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 277 deletions.
8 changes: 1 addition & 7 deletions src/flisp/flisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <locale.h>
#include <limits.h>
#include <errno.h>
#include <libgen.h> // defines dirname

#include "platform.h"
#include "libsupport.h"
Expand All @@ -51,13 +52,6 @@
extern "C" {
#endif

#if defined(_OS_WINDOWS_) && !defined(_COMPILER_GCC_)
#include <malloc.h>
JL_DLLEXPORT char * dirname(char *);
#else
#include <libgen.h>
#endif

static const char *const builtin_names[] =
{ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
Expand Down
4 changes: 1 addition & 3 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <string.h>
#include <stdio.h>
#include <fcntl.h>

#include <errno.h>
#include <libgen.h> // defines dirname

#if !defined(_OS_WINDOWS_) || defined(_COMPILER_GCC_)
#include <getopt.h>
Expand All @@ -34,8 +34,6 @@
extern "C" {
#endif

#include <libgen.h>

#ifdef _OS_WINDOWS_
extern int needsSymRefreshModuleList;
extern BOOL (WINAPI *hSymRefreshModuleList)(HANDLE);
Expand Down
9 changes: 0 additions & 9 deletions src/jlapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ extern "C" {
#include <fenv.h>
#endif

#if defined(_OS_WINDOWS_) && !defined(_COMPILER_GCC_)
JL_DLLEXPORT char * __cdecl dirname(char *);
#else
#include <libgen.h>
#endif
#ifndef _OS_WINDOWS_
#include <dlfcn.h>
#endif

JL_DLLEXPORT int jl_is_initialized(void)
{
return jl_main_module != NULL;
Expand Down
3 changes: 0 additions & 3 deletions src/julia.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,10 @@
# define JL_NORETURN __attribute__ ((noreturn))
# define JL_CONST_FUNC __attribute__((const))
# define JL_USED_FUNC __attribute__((used))
# define JL_SECTION(name) __attribute__((section(name)))
# define JL_THREAD_LOCAL __thread
#else
# define JL_NORETURN
# define JL_CONST_FUNC
# define JL_USED_FUNC
# define JL_THREAD_LOCAL
#endif

#define container_of(ptr, type, member) \
Expand Down
249 changes: 0 additions & 249 deletions src/support/dirname.c

This file was deleted.

6 changes: 0 additions & 6 deletions src/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@
extern "C" {
#endif

#if defined(_OS_WINDOWS_) && !defined(_COMPILER_GCC_)
JL_DLLEXPORT char *dirname(char *);
#else
#include <libgen.h>
#endif

JL_DLLEXPORT int jl_sizeof_off_t(void) { return sizeof(off_t); }
#ifndef _OS_WINDOWS_
JL_DLLEXPORT int jl_sizeof_mode_t(void) { return sizeof(mode_t); }
Expand Down

0 comments on commit c2cec7a

Please sign in to comment.