lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [07/17] git commit: refs/heads/cfish-string-prep1 - Remove Assign methods from ViewCharBuf
Date Fri, 13 Sep 2013 18:31:39 GMT
Remove Assign methods from ViewCharBuf


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

Branch: refs/heads/cfish-string-prep1
Commit: eafb8f709fbade8cbc2226bdfaa3cbf0797ccb21
Parents: 0f327b9
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sun Sep 8 12:22:26 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Mon Sep 9 20:17:52 2013 +0200

----------------------------------------------------------------------
 clownfish/runtime/core/Clownfish/String.c   | 21 ---------------------
 clownfish/runtime/core/Clownfish/String.cfh |  9 ---------
 2 files changed, 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/eafb8f70/clownfish/runtime/core/Clownfish/String.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/String.c b/clownfish/runtime/core/Clownfish/String.c
index 319f54d..d5b5832 100644
--- a/clownfish/runtime/core/Clownfish/String.c
+++ b/clownfish/runtime/core/Clownfish/String.c
@@ -592,27 +592,6 @@ ViewCB_Destroy_IMP(ViewCharBuf *self) {
     SUPER_DESTROY(self, STRING);
 }
 
-void
-ViewCB_Assign_IMP(ViewCharBuf *self, const String *other) {
-    self->ptr  = other->ptr;
-    self->size = other->size;
-}
-
-void
-ViewCB_Assign_Str_IMP(ViewCharBuf *self, const char *utf8, size_t size) {
-    if (!StrHelp_utf8_valid(utf8, size)) {
-        DIE_INVALID_UTF8(utf8, size);
-    }
-    self->ptr  = (char*)utf8;
-    self->size = size;
-}
-
-void
-ViewCB_Assign_Trusted_Str_IMP(ViewCharBuf *self, const char *utf8, size_t size) {
-    self->ptr  = (char*)utf8;
-    self->size = size;
-}
-
 char*
 ViewCB_Grow_IMP(ViewCharBuf *self, size_t size) {
     UNUSED_VAR(size);

http://git-wip-us.apache.org/repos/asf/lucy/blob/eafb8f70/clownfish/runtime/core/Clownfish/String.cfh
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/String.cfh b/clownfish/runtime/core/Clownfish/String.cfh
index bce0b36..ecd7bfb 100644
--- a/clownfish/runtime/core/Clownfish/String.cfh
+++ b/clownfish/runtime/core/Clownfish/String.cfh
@@ -295,15 +295,6 @@ class Clownfish::ViewCharBuf cnick ViewCB
     inert ViewCharBuf*
     init(ViewCharBuf *self, const char *utf8, size_t size);
 
-    void
-    Assign(ViewCharBuf *self, const String *other);
-
-    void
-    Assign_Str(ViewCharBuf *self, const char *utf8, size_t size);
-
-    void
-    Assign_Trusted_Str(ViewCharBuf *self, const char *utf8, size_t size);
-
     /** Throws an error. */
     char*
     Grow(ViewCharBuf *self, size_t size);


Mime
View raw message