Skip to content

Commit c77d5cc

Browse files
committed
Cleanup the c extension
Remove useless global and header files.
1 parent 73f6512 commit c77d5cc

3 files changed

Lines changed: 1 addition & 10 deletions

File tree

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

ext/bootsnap/bootsnap.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* here.
1212
*/
1313

14-
#include "bootsnap.h"
1514
#include "ruby.h"
1615
#include <stdint.h>
1716
#include <stdbool.h>
@@ -96,7 +95,6 @@ static mode_t current_umask;
9695

9796
/* Bootsnap::CompileCache::{Native, Uncompilable} */
9897
static VALUE rb_mBootsnap;
99-
static VALUE rb_mBootsnap_CompileCache;
10098
static VALUE rb_mBootsnap_CompileCache_Native;
10199
static VALUE rb_cBootsnap_CompileCache_UNCOMPILABLE;
102100
static ID instrumentation_method;
@@ -166,7 +164,7 @@ Init_bootsnap(void)
166164

167165
rb_define_singleton_method(rb_mBootsnap, "rb_get_path", bs_rb_get_path, 1);
168166

169-
rb_mBootsnap_CompileCache = rb_define_module_under(rb_mBootsnap, "CompileCache");
167+
VALUE rb_mBootsnap_CompileCache = rb_define_module_under(rb_mBootsnap, "CompileCache");
170168
rb_mBootsnap_CompileCache_Native = rb_define_module_under(rb_mBootsnap_CompileCache, "Native");
171169
rb_cBootsnap_CompileCache_UNCOMPILABLE = rb_const_get(rb_mBootsnap_CompileCache, rb_intern("UNCOMPILABLE"));
172170
rb_global_variable(&rb_cBootsnap_CompileCache_UNCOMPILABLE);

ext/bootsnap/bootsnap.h

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)