remove unused hasOnlyAlphabetic function from HyphenationCommon

This commit is contained in:
Arthur Tazhitdinov 2026-01-10 02:33:22 +05:00
parent 4aa0424fe6
commit 51bc4810ec
2 changed files with 0 additions and 14 deletions

View File

@ -106,19 +106,6 @@ void trimSurroundingPunctuation(std::vector<CodepointInfo>& cps) {
} }
} }
bool hasOnlyAlphabetic(const std::vector<CodepointInfo>& cps) {
if (cps.empty()) {
return false;
}
for (const auto& info : cps) {
if (!isAlphabetic(info.value)) {
return false;
}
}
return true;
}
std::vector<CodepointInfo> collectCodepoints(const std::string& word) { std::vector<CodepointInfo> collectCodepoints(const std::string& word) {
std::vector<CodepointInfo> cps; std::vector<CodepointInfo> cps;
cps.reserve(word.size()); cps.reserve(word.size());

View File

@ -22,6 +22,5 @@ bool isAsciiDigit(uint32_t cp);
bool isExplicitHyphen(uint32_t cp); bool isExplicitHyphen(uint32_t cp);
bool isSoftHyphen(uint32_t cp); bool isSoftHyphen(uint32_t cp);
void trimSurroundingPunctuation(std::vector<CodepointInfo>& cps); void trimSurroundingPunctuation(std::vector<CodepointInfo>& cps);
bool hasOnlyAlphabetic(const std::vector<CodepointInfo>& cps);
std::vector<CodepointInfo> collectCodepoints(const std::string& word); std::vector<CodepointInfo> collectCodepoints(const std::string& word);
void trimTrailingFootnoteReference(std::vector<CodepointInfo>& cps); void trimTrailingFootnoteReference(std::vector<CodepointInfo>& cps);