Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed Feb 12, 2025
1 parent 0910498 commit 9ec7686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions workspace/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ std::string workspace_index (Webserver_Request& webserver_request)
}


// If the workspace has specified a Bible project, then set this as the active Bible. Todo
{
const std::string workspace = webserver_request.database_config_user ()->getActiveWorkspace ();
}


// Create default set of workspaces if there are none.
bool create = workspaces.empty ();
if (!create) {
Expand Down Expand Up @@ -113,8 +107,7 @@ std::string workspace_index (Webserver_Request& webserver_request)
// The Bible editor number, starting from 1, increasing.
std::map <int, int> editor_numbers = workspace_add_bible_editor_number (urls);
for (int key = 0; key < 15; key++) {
const std::string url = urls [key]; // Todo
if (!url.empty()) std::cout << url << std::endl; // Todo
const std::string url = urls [key];
const std::string width = widths [key];
const int editor_number = editor_numbers [key];
const int row = static_cast<int> (round (key / 5)) + 1;
Expand Down
2 changes: 1 addition & 1 deletion workspace/logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ std::map <int, int> workspace_add_bible_editor_number (std::map <int, std::strin
}


std::optional<std::string> get_first_bible_from_urls (const std::map <int,std::string>& urls) // Todo
std::optional<std::string> get_first_bible_from_urls (const std::map <int,std::string>& urls)
{
for (const auto& [key, url] : urls) {
const std::vector <std::string> bits = filter::strings::explode (url, '?');
Expand Down

0 comments on commit 9ec7686

Please sign in to comment.