summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src/communication.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-06 18:45:45 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-06 18:45:51 +0300
commit9b480a3d2721f5fff3236e5081bb559d7d9baea5 (patch)
tree16e0c6b9146f3227a69f4e105bccb433cbe3a7d7 /protocols/Omegle/src/communication.cpp
parentd8bdafe7af3a74e9b84f78bfd74b3093e6a66b16 (diff)
fixes #3851 (Omegle: сделать список языков переводимым)
Diffstat (limited to 'protocols/Omegle/src/communication.cpp')
-rw-r--r--protocols/Omegle/src/communication.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/protocols/Omegle/src/communication.cpp b/protocols/Omegle/src/communication.cpp
index dfd1dc4dd4..060430a9ec 100644
--- a/protocols/Omegle/src/communication.cpp
+++ b/protocols/Omegle/src/communication.cpp
@@ -161,31 +161,6 @@ bool Omegle_client::handle_error(const std::string &method, bool force_disconnec
//////////////////////////////////////////////////////////////////////////////
-std::string Omegle_client::get_server(bool not_last)
-{
- int q = not_last ? 1 : 0;
-
- int server = db_get_b(0, parent->m_szModuleName, OMEGLE_KEY_SERVER, 0);
- if (server < 0 || server >= (int)(_countof(servers) - q))
- server = 0;
-
- if (server == 0) {
- srand(::time(0));
- server = (rand() % (_countof(servers) - 1 - q)) + 1;
- }
-
- return servers[server];
-}
-
-std::string Omegle_client::get_language()
-{
- int language = db_get_b(0, parent->m_szModuleName, OMEGLE_KEY_LANGUAGE, 0);
- if (language < 0 || language >= (_countof(languages)))
- language = 0;
-
- return language > 0 ? languages[language].id : "en";
-}
-
std::string Omegle_client::choose_server(int request_type)
{
switch (request_type)