]> git.wincent.com - wikitext.git/commitdiff
Remove unused str_swap function
authorWincent Colaiuta <win@wincent.com>
Mon, 11 May 2009 19:25:17 +0000 (21:25 +0200)
committerWincent Colaiuta <win@wincent.com>
Mon, 11 May 2009 19:25:17 +0000 (21:25 +0200)
Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/str.c
ext/str.h

index dca5713290e0a1f06c06d3ed9d67fed29c84f119..0ee2c51f91b9c9a42ff86ccd7372ae3ee54f723f 100644 (file)
--- a/ext/str.c
+++ b/ext/str.c
@@ -103,14 +103,6 @@ void str_append_string(str_t *str, VALUE other)
     str_append(str, RSTRING_PTR(other), RSTRING_LEN(other));
 }
 
     str_append(str, RSTRING_PTR(other), RSTRING_LEN(other));
 }
 
-void str_swap(str_t **a, str_t **b)
-{
-    str_t *c;
-    c = *a;
-    *a = *b;
-    *b = c;
-}
-
 void str_clear(str_t *str)
 {
     str->len = 0;
 void str_clear(str_t *str)
 {
     str->len = 0;
index 4211978ee1daf9eb7f4c78b2906ed180767ef4d3..ff0bb05d855f90173f48fefe2dda2b1a065407ab 100644 (file)
--- a/ext/str.h
+++ b/ext/str.h
@@ -60,10 +60,6 @@ void str_append_str(str_t *str, str_t *other);
 // appends the "other" string (a Ruby String) onto str
 void str_append_string(str_t *str, VALUE other);
 
 // appends the "other" string (a Ruby String) onto str
 void str_append_string(str_t *str, VALUE other);
 
-// this is a temporary convenience measure
-// later on if I develop in-place variants of some functions this won't be needed
-void str_swap(str_t **a, str_t **b);
-
 // don't actually free the memory yet
 // this makes str structs very useful when reusing buffers because it avoids reallocation
 void str_clear(str_t *str);
 // don't actually free the memory yet
 // this makes str structs very useful when reusing buffers because it avoids reallocation
 void str_clear(str_t *str);