Remove SStr_wrap

Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/02ba4bd8
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/02ba4bd8
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/02ba4bd8

Branch: refs/heads/master
Commit: 02ba4bd8a306f44661ad3c94ffd7c200e726787b
Parents: a149e4e
Author: Nick Wellnhofer <[email protected]>
Authored: Sat May 9 21:33:58 2015 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Tue May 12 18:34:59 2015 +0200

----------------------------------------------------------------------
 runtime/core/Clownfish/String.c   | 5 -----
 runtime/core/Clownfish/String.cfh | 7 -------
 2 files changed, 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/02ba4bd8/runtime/core/Clownfish/String.c
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/String.c b/runtime/core/Clownfish/String.c
index 25237c7..e077050 100644
--- a/runtime/core/Clownfish/String.c
+++ b/runtime/core/Clownfish/String.c
@@ -528,11 +528,6 @@ SStr_wrap_utf8(void *allocation, const char *ptr, size_t 
size) {
     return self;
 }
 
-StackString*
-SStr_wrap(void *allocation, String *source) {
-    return SStr_wrap_utf8(allocation, source->ptr, source->size);
-}
-
 void
 SStr_Destroy_IMP(StackString *self) {
     THROW(ERR, "Can't destroy a StackString ('%o')", self);

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/02ba4bd8/runtime/core/Clownfish/String.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/String.cfh 
b/runtime/core/Clownfish/String.cfh
index f9a21f5..6ebccfe 100644
--- a/runtime/core/Clownfish/String.cfh
+++ b/runtime/core/Clownfish/String.cfh
@@ -276,9 +276,6 @@ class Clownfish::StackString nickname SStr
     inherits Clownfish::String {
 
     inert incremented StackString*
-    wrap(void *allocation, String *source);
-
-    inert incremented StackString*
     wrap_utf8(void *allocation, const char *utf8, size_t size);
 
     /** Throws an error.
@@ -398,9 +395,6 @@ __C__
 #define CFISH_SSTR_BLANK() \
    cfish_SStr_wrap_utf8(CFISH_ALLOCA_OBJ(CFISH_STACKSTRING), "", 0)
 
-#define CFISH_SSTR_WRAP(source) \
-    cfish_SStr_wrap(CFISH_ALLOCA_OBJ(CFISH_STACKSTRING), source)
-
 #define CFISH_SSTR_WRAP_UTF8(ptr, size) \
     cfish_SStr_wrap_utf8(CFISH_ALLOCA_OBJ(CFISH_STACKSTRING), ptr, size)
 
@@ -408,7 +402,6 @@ __C__
 
 #ifdef CFISH_USE_SHORT_NAMES
   #define SSTR_BLANK             CFISH_SSTR_BLANK
-  #define SSTR_WRAP              CFISH_SSTR_WRAP
   #define SSTR_WRAP_UTF8         CFISH_SSTR_WRAP_UTF8
   #define STRITER_DONE           CFISH_STRITER_DONE
 #endif

Reply via email to