summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-03-07 16:34:09 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2016-03-08 11:14:55 +0100
commitff215b2f8f34fa25e56214be35123b81c99d16fe (patch)
tree3672c83ef8a815e65ff11ba5351f2f14c32b31e1 /src
parent4f86edc1b616843766e3c2e9e768ab736e8b632b (diff)
eolian_gen: remove unused functions _nextline and _startline
These two have no users and there is no point in keeping them around.
Diffstat (limited to 'src')
-rw-r--r--src/bin/eolian/common_funcs.c26
-rw-r--r--src/bin/eolian/common_funcs.h4
2 files changed, 0 insertions, 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
129 eina_strbuf_replace_all(buf, "@#CLASS", tmp_env.upper_classname); 129 eina_strbuf_replace_all(buf, "@#CLASS", tmp_env.upper_classname);
130 } 130 }
131} 131}
132
133char*
134_nextline(char *str, unsigned int lines)
135{
136 if (!str) return NULL;
137
138 char *ret = str;
139 while (lines--)
140 {
141 ret= strchr(ret, '\n');
142 if (ret) ret++;
143 else return NULL;
144 }
145 return ret;
146}
147
148char*
149_startline(char *str, char *pos)
150{
151 if (!str || !pos) return NULL;
152
153 char *ret = pos;
154 while ((ret > str) && (*(ret-1)!='\n')) ret--;
155
156 return ret;
157}
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
59 59
60void _template_fill(Eina_Strbuf *buf, const char *templ, const Eolian_Class *class, const char *classname, const char *funcname, Eina_Bool reset); 60void _template_fill(Eina_Strbuf *buf, const char *templ, const Eolian_Class *class, const char *classname, const char *funcname, Eina_Bool reset);
61 61
62char *_nextline(char *str, unsigned int lines);
63
64char *_startline(char *str, char *pos);
65
66void _class_env_create(const Eolian_Class *class, const char *over_classname, _eolian_class_vars *env); 62void _class_env_create(const Eolian_Class *class, const char *over_classname, _eolian_class_vars *env);
67 63
68void _class_func_env_create(const Eolian_Class *class, const char *funcname, Eolian_Function_Type ftype EINA_UNUSED, _eolian_class_func_vars *env); 64void _class_func_env_create(const Eolian_Class *class, const char *funcname, Eolian_Function_Type ftype EINA_UNUSED, _eolian_class_func_vars *env);