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:
patrick96 2018-12-26 02:17:22 +01:00 committed by Patrick Ziegler
parent 56e24992df
commit f967cd5f59
3 changed files with 1 additions and 10 deletions

View File

@ -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_MESSAGING_FIFO{"@SETTING_PATH_MESSAGING_FIFO@"};
static constexpr const char* PATH_TEMPERATURE_INFO{"@SETTING_PATH_TEMPERATURE_INFO@"}; 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) { const auto version_details = [](const std::vector<std::string>& args) {
for (auto&& arg : args) { for (auto&& arg : args) {
if (arg.compare(0, 3, "-vv") == 0) if (arg.compare(0, 3, "-vv") == 0)

View File

@ -8,10 +8,6 @@
#include "utils/time.hpp" #include "utils/time.hpp"
POLYBAR_NS POLYBAR_NS
#ifndef BUILDER_SPACE_TOKEN
#define BUILDER_SPACE_TOKEN "%__"
#endif
builder::builder(const bar_settings& bar) : m_bar(bar) { builder::builder(const bar_settings& bar) : m_bar(bar) {
m_tags[syntaxtag::A] = 0; m_tags[syntaxtag::A] = 0;
m_tags[syntaxtag::B] = 0; m_tags[syntaxtag::B] = 0;
@ -66,7 +62,7 @@ string builder::flush() {
m_output.clear(); m_output.clear();
m_fontindex = 1; m_fontindex = 1;
return string_util::replace_all(output, BUILDER_SPACE_TOKEN, " "); return output;
} }
/** /**

View File

@ -13,9 +13,6 @@ namespace modules {
if (m_formatter->get("content")->value.empty()) { if (m_formatter->get("content")->value.empty()) {
throw module_error(name() + ".content is empty or undefined"); 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 { string text_module::get_format() const {