stefan pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=ff215b2f8f34fa25e56214be35123b81c99d16fe
commit ff215b2f8f34fa25e56214be35123b81c99d16fe Author: Stefan Schmidt <ste...@osg.samsung.com> Date: Mon Mar 7 16:34:09 2016 +0100 eolian_gen: remove unused functions _nextline and _startline These two have no users and there is no point in keeping them around. --- src/bin/eolian/common_funcs.c | 26 -------------------------- src/bin/eolian/common_funcs.h | 4 ---- 2 files changed, 30 deletions(-) diff --git a/src/bin/eolian/common_funcs.c b/src/bin/eolian/common_funcs.c index 515f249..0005e1d 100644 --- a/src/bin/eolian/common_funcs.c +++ b/src/bin/eolian/common_funcs.c @@ -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; -} diff --git a/src/bin/eolian/common_funcs.h b/src/bin/eolian/common_funcs.h index 4f72a9b..e63c8f4 100644 --- a/src/bin/eolian/common_funcs.h +++ b/src/bin/eolian/common_funcs.h @@ -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); --