[matplotlib/modpyplot.cpp] Removed function previously used for setting colors

Change-Id: I76bb489d5a5b78162873f68c5e3cca8cebb77aba
This commit is contained in:
Arthur Camouseigt
2020-05-25 14:43:50 +02:00
committed by Émilie Feral
parent c39b432dd6
commit 68e3208799

View File

@@ -60,17 +60,6 @@ KDColor colorFromKeywordArgument(mp_map_elem_t * elemColor) {
}
}
// Get color from arguments if possible
// TODO DELETE AFTER REPLACEMENT
KDColor colorFromOptionalArgumentAtIndex(size_t n_args, const mp_obj_t * args, size_t colorIndex) {
if (n_args > colorIndex) {
return MicroPython::Color::Parse(args[colorIndex]);
} else {
return Palette::nextDataColor(&paletteIndex);
}
}
// Internal functions
mp_obj_t modpyplot___init__() {