summaryrefslogtreecommitdiff
path: root/src/utils.cpp
diff options
context:
space:
mode:
authorGravatar Raphael Nestler <raphael.nestler@gmail.com> 2021-03-21 11:17:58 +0100
committerGravatar Raphael Nestler <raphael.nestler@gmail.com> 2021-03-21 11:21:08 +0100
commit793113f4e3ac1eb848df46b1e73fca486bc1df10 (patch)
treef2d926cf46f88341dbe2de86467d97eb03c5d2cb /src/utils.cpp
parent48ae63d47f425eb542e981df3e06cbf608df1123 (diff)
downloadnewsboat-793113f4e3ac1eb848df46b1e73fca486bc1df10.tar.gz
newsboat-793113f4e3ac1eb848df46b1e73fca486bc1df10.tar.zst
newsboat-793113f4e3ac1eb848df46b1e73fca486bc1df10.zip
Remove C++ utils::convert_text since it isn't used anywhere
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index 3408c2bf..68149633 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -261,18 +261,6 @@ std::string utils::translit(const std::string& tocode, const std::string& fromco
return std::string(utils::bridged::translit(tocode, fromcode));
}
-std::string utils::convert_text(const std::string& text,
- const std::string& tocode,
- const std::string& fromcode)
-{
- const auto text_slice =
- rust::Slice<unsigned char>(
- reinterpret_cast<const unsigned char*>(text.c_str()),
- text.length());
- const auto result = utils::bridged::convert_text(text_slice, tocode, fromcode);
- return std::string(reinterpret_cast<const char*>(result.data()), result.size());
-}
-
std::string utils::utf8_to_locale(const std::string& text)
{
const auto result = utils::bridged::utf8_to_locale(text);