builder: remove BUILDER_SPACE_TOKEN
Was around since the first commit but no documentation why. It was only used in the text module and doesn't appear in any public documentation, so this doesn't break anything.
This commit is contained in:
parent
56e24992df
commit
f967cd5f59
@ -72,8 +72,6 @@ static constexpr const char* PATH_MEMORY_INFO{"@SETTING_PATH_MEMORY_INFO@"};
|
||||
static constexpr const char* PATH_MESSAGING_FIFO{"@SETTING_PATH_MESSAGING_FIFO@"};
|
||||
static constexpr const char* PATH_TEMPERATURE_INFO{"@SETTING_PATH_TEMPERATURE_INFO@"};
|
||||
|
||||
static constexpr const char* BUILDER_SPACE_TOKEN{"%__"};
|
||||
|
||||
const auto version_details = [](const std::vector<std::string>& args) {
|
||||
for (auto&& arg : args) {
|
||||
if (arg.compare(0, 3, "-vv") == 0)
|
||||
|
@ -8,10 +8,6 @@
|
||||
#include "utils/time.hpp"
|
||||
POLYBAR_NS
|
||||
|
||||
#ifndef BUILDER_SPACE_TOKEN
|
||||
#define BUILDER_SPACE_TOKEN "%__"
|
||||
#endif
|
||||
|
||||
builder::builder(const bar_settings& bar) : m_bar(bar) {
|
||||
m_tags[syntaxtag::A] = 0;
|
||||
m_tags[syntaxtag::B] = 0;
|
||||
@ -66,7 +62,7 @@ string builder::flush() {
|
||||
m_output.clear();
|
||||
m_fontindex = 1;
|
||||
|
||||
return string_util::replace_all(output, BUILDER_SPACE_TOKEN, " ");
|
||||
return output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -13,9 +13,6 @@ namespace modules {
|
||||
if (m_formatter->get("content")->value.empty()) {
|
||||
throw module_error(name() + ".content is empty or undefined");
|
||||
}
|
||||
|
||||
m_formatter->get("content")->value =
|
||||
string_util::replace_all(m_formatter->get("content")->value, " ", BUILDER_SPACE_TOKEN);
|
||||
}
|
||||
|
||||
string text_module::get_format() const {
|
||||
|
Loading…
Reference in New Issue
Block a user