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:
parent
fb6e874235
commit
37628f8691
2 changed files with 14 additions and 18 deletions
include/components
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue