Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed May 1, 2023
1 parent 808825e commit 87fc1ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
25 changes: 2 additions & 23 deletions config/logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ string admin_email ()
}


// Replacement function for missing "stoi" on platform like Android.
// Replacement function for missing "stoi" on platforms like Android.
int my_stoi (const string& str, void * idx, int base)
{
#ifdef HAVE_STOI
Expand Down Expand Up @@ -251,7 +251,7 @@ void swipe_enabled (void * webserver_request, string & script)
{
Webserver_Request * request = static_cast<Webserver_Request *>(webserver_request);

string true_false = "false";
string true_false {"false"};
if (request->session_logic ()->touchEnabled ()) {
if (request->database_config_user ()->getSwipeActionsAvailable ()) {
true_false = "true";
Expand All @@ -265,27 +265,6 @@ void swipe_enabled (void * webserver_request, string & script)
}


// Whether the free Indonesian Cloud is enabled. To be removed.
bool indonesian_cloud_free ()
{
return false;
}


// Whether the free Indonesian Cloud Free Simple is enabled. To be removed.
bool indonesian_cloud_free_simple ()
{
return false;
}


// Whether the free Indonesian Cloud Free Individual is enabled. To be removed.
bool indonesian_cloud_free_individual ()
{
return false;
}


// Whether the Indonesian Member Cloud is enabled.
bool indonesian_member_cloud ()
{
Expand Down
3 changes: 0 additions & 3 deletions config/logic.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ std::string authorities_certificates_path (const bool force);
bool enforce_https_browser ();
bool enforce_https_client ();
void swipe_enabled (void * webserver_request, std::string & script);
bool indonesian_cloud_free ();
bool indonesian_cloud_free_simple ();
bool indonesian_cloud_free_individual ();
bool indonesian_member_cloud ();
bool default_bibledit_configuration ();
std::string google_translate_json_key_path ();
Expand Down

0 comments on commit 87fc1ca

Please sign in to comment.