lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [14/17] git commit: refs/heads/cfish-string-prep1 - Remove unused S_die_invalid_pattern from String.c
Date Fri, 13 Sep 2013 18:31:46 GMT
Remove unused S_die_invalid_pattern from String.c


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

Branch: refs/heads/cfish-string-prep1
Commit: 8a7a3e0339f5a0d6d569898016c95ca2e198fbcd
Parents: 19844b5
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Tue Sep 10 02:40:16 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Fri Sep 13 20:16:12 2013 +0200

----------------------------------------------------------------------
 clownfish/runtime/core/Clownfish/String.c | 13 -------------
 1 file changed, 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/8a7a3e03/clownfish/runtime/core/Clownfish/String.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/String.c b/clownfish/runtime/core/Clownfish/String.c
index ecc5989..6e74a4e 100644
--- a/clownfish/runtime/core/Clownfish/String.c
+++ b/clownfish/runtime/core/Clownfish/String.c
@@ -52,10 +52,6 @@ static void
 S_die_invalid_utf8(const char *text, size_t size, const char *file, int line,
                    const char *func);
 
-// Helper function for throwing invalid pattern error.
-static void
-S_die_invalid_pattern(const char *pattern);
-
 String*
 Str_new(size_t size) {
     String *self = (String*)VTable_Make_Obj(STRING);
@@ -180,15 +176,6 @@ S_die_invalid_utf8(const char *text, size_t size, const char *file, int
line,
     Err_throw_at(ERR, file, line, func, "Invalid UTF-8");
 }
 
-static void
-S_die_invalid_pattern(const char *pattern) {
-    size_t  pattern_len = strlen(pattern);
-    fprintf(stderr, "Invalid pattern, aborting: '");
-    fwrite(pattern, sizeof(char), pattern_len, stderr);
-    fprintf(stderr, "'\n");
-    THROW(ERR, "Invalid pattern.");
-}
-
 String*
 Str_To_String_IMP(String *self) {
     return Str_new_from_trusted_utf8(self->ptr, self->size);


Mime
View raw message