py: Remove old "run time" functions that were 1 liners.

This commit is contained in:
Damien George
2014-03-31 16:28:13 +01:00
parent f78b6df192
commit 15d18069c5
12 changed files with 36 additions and 83 deletions

View File

@@ -372,7 +372,7 @@ STATIC mp_obj_t str_split(uint n_args, const mp_obj_t *args) {
while (s < top && splits != 0) {
start = s;
while (s < top && !is_ws(*s)) s++;
mp_list_append(res, mp_obj_new_str(start, s - start, false));
mp_obj_list_append(res, mp_obj_new_str(start, s - start, false));
if (s >= top) {
break;
}
@@ -383,7 +383,7 @@ STATIC mp_obj_t str_split(uint n_args, const mp_obj_t *args) {
}
if (s < top) {
mp_list_append(res, mp_obj_new_str(s, top - s, false));
mp_obj_list_append(res, mp_obj_new_str(s, top - s, false));
}
return res;