From: Jérémie Astor Date: Mon, 13 Jul 2020 23:35:18 +0000 (+0200) Subject: :art: Remove useless functions X-Git-Tag: nightly~1436 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a466c145605c121ae61b742aa3b04735ca62643b;p=gwion.git :art: Remove useless functions --- diff --git a/src/lib/string.c b/src/lib/string.c index c904f944..15fedaa3 100644 --- a/src/lib/string.c +++ b/src/lib/string.c @@ -465,12 +465,6 @@ static MFUN(string_toFloat) { *(m_float*)RETURN = atof(STRING(o)); } -static SFUN(char_toString) { - char c[2]; - sprintf(c, "%c", *(char*)MEM(0)); - *(M_Object*)RETURN = new_string(shred->info->vm->gwion->mp, shred, c); -} - GWION_IMPORT(string) { const Type t_string = gwi_class_ini(gwi, "string", NULL); gwi_class_xtor(gwi, string_ctor, NULL);