From 93cbfd31d14be8b35e65eb7116fafcd0f867a72d Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 4 Sep 2013 10:27:08 +0000 Subject: remove the dependency on the CHAR_ASCII flag --- src/runtime/c/gu/string.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/runtime/c/gu/string.c') diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c index 1a53c3a28..1998859e4 100644 --- a/src/runtime/c/gu/string.c +++ b/src/runtime/c/gu/string.c @@ -5,7 +5,6 @@ #include #include #include -#include "config.h" const GuString gu_empty_string = { 1 }; @@ -195,18 +194,7 @@ gu_format_string(GuPool* pool, const char* fmt, ...) GuString gu_str_string(const char* str, GuPool* pool) { -#ifdef CHAR_ASCII return gu_utf8_string((const uint8_t*) str, strlen(str), pool); -#else - GuPool* tmp_pool = gu_local_pool(); - GuStringBuf* sb = gu_string_buf(tmp_pool); - GuWriter* wtr = gu_string_buf_writer(sb); - gu_puts(str, wtr, NULL); - gu_writer_flush(wtr, NULL); - GuString s = gu_string_buf_freeze(sb, pool); - gu_pool_free(tmp_pool); - return s; -#endif } bool -- cgit v1.2.3