Skip to content

Commit ed8158d

Browse files
committed
misc: forgot to remove from translation purge
1 parent d0a4bdc commit ed8158d

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

include/config.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ class Config
4646
bool show_text_tools = true;
4747
bool enable_vsync = true;
4848
bool render_anns = true;
49-
50-
std::unordered_map<std::string, std::string> lang_fonts_paths;
5149
} File;
5250

5351
// Only from CLI arguments

src/config.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,6 @@ void Config::LoadConfigFile(const std::string& filename)
5353

5454
File.allow_out_edit = GetValue<bool>("default.allow-edit-ocr", false); // deprecated
5555
File.allow_out_edit = GetValue<bool>("default.allow-text-edit", File.allow_out_edit);
56-
57-
const toml::table* all_langs_tbl = m_tbl["lang"].as_table();
58-
if (!all_langs_tbl)
59-
return;
60-
61-
for (const auto& [lang_code, lang_node] : *all_langs_tbl)
62-
{
63-
const toml::table* lang_tbl = lang_node.as_table();
64-
if (!lang_tbl)
65-
continue;
66-
67-
const std::optional<std::string>& font_str = lang_tbl->at_path("font").value<std::string>();
68-
if (font_str)
69-
this->File.lang_fonts_paths[lang_code.data()] = font_str.value();
70-
}
7156
}
7257

7358
void Config::OverrideOption(const std::string& opt)

0 commit comments

Comments
 (0)