[sword-svn] r3906 - trunk/utilities
dmsmith at crosswire.org
dmsmith at crosswire.org
Wed Jun 25 09:28:52 EDT 2025
Author: dmsmith
Date: 2025-06-25 09:28:52 -0400 (Wed, 25 Jun 2025)
New Revision: 3906
Modified:
trunk/utilities/osis2mod.cpp
Log:
Removed unused code accidentally introduced in the last commit.
Modified: trunk/utilities/osis2mod.cpp
===================================================================
--- trunk/utilities/osis2mod.cpp 2025-06-25 13:16:46 UTC (rev 3905)
+++ trunk/utilities/osis2mod.cpp 2025-06-25 13:28:52 UTC (rev 3906)
@@ -33,9 +33,6 @@
#include <vector>
#include <iostream>
#include <fstream>
-#include <string>
-#include <algorithm>
-#include <cctype>
#include <utilstr.h>
#include <swmgr.h>
@@ -121,29 +118,6 @@
static bool inCanonicalOSISBook = true; // osisID is for a book that is not in Sword's canon
static bool normalize = true; // Whether to normalize UTF-8 to NFC
-// Safe case-insensitive comparison for SWBuf
-static bool ci_equals(const SWBuf &a, const SWBuf &b) {
- if (a.length() != b.length()) return false;
- for (size_t i = 0; i < a.length(); ++i) {
- if (std::tolower(static_cast<unsigned char>(a[i])) !=
- std::tolower(static_cast<unsigned char>(b[i]))) {
- return false;
- }
- }
- return true;
-}
-
-// Safe case-insensitive prefix comparison for SWBuf
-static bool ci_starts_with(const SWBuf &full, const SWBuf &prefix) {
- if (prefix.length() > full.length()) return false;
- for (size_t i = 0; i < prefix.length(); ++i) {
- if (tolower(static_cast<unsigned char>(full[i])) != tolower(static_cast<unsigned char>(prefix[i]))) {
- return false;
- }
- }
- return true;
-}
-
/**
* Resolves an abbreviation or partial name against a list of candidate strings.
*
More information about the sword-cvs
mailing list