From 51bc4810ec893512189a3c9592ddf8bed6769497 Mon Sep 17 00:00:00 2001 From: Arthur Tazhitdinov Date: Sat, 10 Jan 2026 02:33:22 +0500 Subject: [PATCH] remove unused hasOnlyAlphabetic function from HyphenationCommon --- lib/Epub/Epub/hyphenation/HyphenationCommon.cpp | 13 ------------- lib/Epub/Epub/hyphenation/HyphenationCommon.h | 1 - 2 files changed, 14 deletions(-) diff --git a/lib/Epub/Epub/hyphenation/HyphenationCommon.cpp b/lib/Epub/Epub/hyphenation/HyphenationCommon.cpp index 366f0832..9619bc4a 100644 --- a/lib/Epub/Epub/hyphenation/HyphenationCommon.cpp +++ b/lib/Epub/Epub/hyphenation/HyphenationCommon.cpp @@ -106,19 +106,6 @@ void trimSurroundingPunctuation(std::vector& cps) { } } -bool hasOnlyAlphabetic(const std::vector& cps) { - if (cps.empty()) { - return false; - } - - for (const auto& info : cps) { - if (!isAlphabetic(info.value)) { - return false; - } - } - return true; -} - std::vector collectCodepoints(const std::string& word) { std::vector cps; cps.reserve(word.size()); diff --git a/lib/Epub/Epub/hyphenation/HyphenationCommon.h b/lib/Epub/Epub/hyphenation/HyphenationCommon.h index ae720fdc..ebd49aa0 100644 --- a/lib/Epub/Epub/hyphenation/HyphenationCommon.h +++ b/lib/Epub/Epub/hyphenation/HyphenationCommon.h @@ -22,6 +22,5 @@ bool isAsciiDigit(uint32_t cp); bool isExplicitHyphen(uint32_t cp); bool isSoftHyphen(uint32_t cp); void trimSurroundingPunctuation(std::vector& cps); -bool hasOnlyAlphabetic(const std::vector& cps); std::vector collectCodepoints(const std::string& word); void trimTrailingFootnoteReference(std::vector& cps);