summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-20 09:47:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-20 09:47:50 +0000
commitb117475e18baa73a1787d8038693b1801dafd9f8 (patch)
tree33b37481baff483a59c158f0d1c721bd4669ec63 /ext/json
parent06e935a1267a43031a47472c93ed944e2bcf5dfc (diff)
* ext/json/generator/generator.c (fbuffer_free): removed unused function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/json')
-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 b25c94f..1cbbdee 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 37240a9..35c66af 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);