refactor(builder): Remove unused add_space parameter

the `node` and `node_repeat` were never called with the optional
parameter add_space. And its default value is false, so the
corresponding code was never used.

I think in general it is better to just have the user of those functions
call `builder::space` when they need to instead of adding more
complexity to the `node*` functions.
This commit is contained in:
patrick96 2019-12-11 21:38:21 +01:00 committed by Patrick Ziegler
parent fb6e874235
commit 37628f8691
2 changed files with 14 additions and 18 deletions
include/components

View file

@ -19,11 +19,11 @@ class builder {
void reset();
string flush();
void append(string text);
void node(string str, bool add_space = false);
void node(string str, int font_index, bool add_space = false);
void node(const label_t& label, bool add_space = false);
void node_repeat(const string& str, size_t n, bool add_space = false);
void node_repeat(const label_t& label, size_t n, bool add_space = false);
void node(string str);
void node(string str, int font_index);
void node(const label_t& label);
void node_repeat(const string& str, size_t n);
void node_repeat(const label_t& label, size_t n);
void offset(int pixels = 0);
void space(size_t width);
void space();