summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/json/generator/generator.c5
-rw-r--r--ext/json/generator/generator.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c
index b25c94f8e92..1cbbdee1942 100644
--- a/ext/json/generator/generator.c
+++ b/ext/json/generator/generator.c
@@ -317,11 +317,6 @@ static void fbuffer_free(FBuffer *fb)
ruby_xfree(fb);
}
-static void fbuffer_free_only_buffer(FBuffer *fb)
-{
- ruby_xfree(fb);
-}
-
static void fbuffer_clear(FBuffer *fb)
{
fb->len = 0;
diff --git a/ext/json/generator/generator.h b/ext/json/generator/generator.h
index 37240a9c6bd..35c66af3795 100644
--- a/ext/json/generator/generator.h
+++ b/ext/json/generator/generator.h
@@ -67,7 +67,6 @@ static char *fstrndup(const char *ptr, int len);
static FBuffer *fbuffer_alloc();
static FBuffer *fbuffer_alloc_with_length(unsigned initial_length);
static void fbuffer_free(FBuffer *fb);
-static void fbuffer_free_only_buffer(FBuffer *fb);
static void fbuffer_clear(FBuffer *fb);
static void fbuffer_append(FBuffer *fb, const char *newstr, unsigned int len);
static void fbuffer_append_long(FBuffer *fb, long number);