]> Nishi Git Mirror - gwion.git/commitdiff
:art: Remove useless functions
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 13 Jul 2020 23:35:18 +0000 (01:35 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 13 Jul 2020 23:35:18 +0000 (01:35 +0200)
src/lib/string.c

index c904f9446348403ee94b77e7524fd5c9941e6dcc..15fedaa3d1f6e5a2336c7714fc0d889c6a9c28ec 100644 (file)
@@ -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);