diff options
author | Stefan Schmidt <stefan@osg.samsung.com> | 2016-03-07 16:34:09 +0100 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2016-03-08 11:14:55 +0100 |
commit | ff215b2f8f34fa25e56214be35123b81c99d16fe (patch) | |
tree | 3672c83ef8a815e65ff11ba5351f2f14c32b31e1 | |
parent | 4f86edc1b616843766e3c2e9e768ab736e8b632b (diff) | |
download | efl-ff215b2f8f34fa25e56214be35123b81c99d16fe.tar.gz |
eolian_gen: remove unused functions _nextline and _startline
These two have no users and there is no point in keeping them around.
-rw-r--r-- | src/bin/eolian/common_funcs.c | 26 | ||||
-rw-r--r-- | src/bin/eolian/common_funcs.h | 4 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/bin/eolian/common_funcs.c b/src/bin/eolian/common_funcs.c index 515f249eb5..0005e1d37d 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 4f72a9b6f2..e63c8f41b6 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); |