py: #if guard str_make_new when not needed.
diff --git a/py/objstr.c b/py/objstr.c
index 97a5a7d..a8e2760 100644
--- a/py/objstr.c
+++ b/py/objstr.c
@@ -136,6 +136,7 @@
}
}
+#if !MICROPY_PY_BUILTINS_STR_UNICODE || MICROPY_CPYTHON_COMPAT
STATIC mp_obj_t str_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) {
#if MICROPY_CPYTHON_COMPAT
if (n_kw != 0) {
@@ -173,6 +174,7 @@
}
}
}
+#endif
STATIC mp_obj_t bytes_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) {
if (n_args == 0) {