eolian_gen: remove unused functions _nextline and _startline

These two have no users and there is no point in keeping them around.
This commit is contained in:
Stefan Schmidt 2016-03-07 16:34:09 +01:00
parent 4f86edc1b6
commit ff215b2f8f
2 changed files with 0 additions and 30 deletions

View File

@ -129,29 +129,3 @@ _template_fill(Eina_Strbuf *buf, const char *templ, const Eolian_Class *class, c
eina_strbuf_replace_all(buf, "@#CLASS", tmp_env.upper_classname);
}
}
char*
_nextline(char *str, unsigned int lines)
{
if (!str) return NULL;
char *ret = str;
while (lines--)
{
ret= strchr(ret, '\n');
if (ret) ret++;
else return NULL;
}
return ret;
}
char*
_startline(char *str, char *pos)
{
if (!str || !pos) return NULL;
char *ret = pos;
while ((ret > str) && (*(ret-1)!='\n')) ret--;
return ret;
}

View File

@ -59,10 +59,6 @@ typedef struct
void _template_fill(Eina_Strbuf *buf, const char *templ, const Eolian_Class *class, const char *classname, const char *funcname, Eina_Bool reset);
char *_nextline(char *str, unsigned int lines);
char *_startline(char *str, char *pos);
void _class_env_create(const Eolian_Class *class, const char *over_classname, _eolian_class_vars *env);
void _class_func_env_create(const Eolian_Class *class, const char *funcname, Eolian_Function_Type ftype EINA_UNUSED, _eolian_class_func_vars *env);