Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-klein committed Oct 28, 2024
1 parent c0f5ecc commit 95930b9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions src/sword_backend/module_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ bool ModuleHelper::moduleHasFeature(sword::SWModule* module, std::string feature
return this->moduleHasKeyValuePair(module, "Feature", feature);
}

bool ModuleHelper::moduleHasStrongsKeys(sword::SWModule* module)
{
bool hasHebrewStrongsKeys = this->moduleHasFeature(module, "HebrewDef");
bool hasGreekStrongsKeys = this->moduleHasFeature(module, "GreekDef");

return hasHebrewStrongsKeys || hasGreekStrongsKeys;
}

bool ModuleHelper::moduleHasKeyValuePair(sword::SWModule* module, std::string key, std::string value)
{
bool hasKeyValuePair = false;
Expand Down
1 change: 0 additions & 1 deletion src/sword_backend/module_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class ModuleHelper {

bool moduleHasGlobalOption(sword::SWModule* module, std::string globalOption);
bool moduleHasFeature(sword::SWModule* module, std::string feature);
bool moduleHasStrongsKeys(sword::SWModule* module);
bool moduleHasBook(sword::SWModule* module, std::string bookCode);

std::vector<std::string> getBookList(std::string moduleName);
Expand Down
9 changes: 0 additions & 9 deletions src/sword_backend/repository_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,6 @@ vector<SWModule*> RepositoryInterface::getAllRepoModules(string repoName, Module
SWModule* currentModule = it->second;
string currentModuleType = currentModule->getType();

/*if (moduleType == ModuleType::dict && !this->_moduleHelper.moduleHasStrongsKeys(currentModule)) {
continue;
}*/

if (moduleTypeString == "ANY" || currentModuleType == moduleTypeString) {
modules.push_back(currentModule);
}
Expand Down Expand Up @@ -288,11 +284,6 @@ vector<SWModule*> RepositoryInterface::getRepoModulesByLang(string repoName,
continue;
}

/*if (moduleType == ModuleType::dict && !hasHebrewStrongsKeys && !hasGreekStrongsKeys) {
// In case of a dictionary module we ignore it if there are not Strong's keys
continue;
}*/

if (hebrewStrongsKeys && !hasHebrewStrongsKeys) {
continue;
}
Expand Down

0 comments on commit 95930b9

Please sign in to comment.