forked from enlightenment/efl
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:
parent
4f86edc1b6
commit
ff215b2f8f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue