diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-08-20 15:03:12 +0200 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-08-20 15:08:37 +0200 |
commit | 4d113e5efe56850e90ed302244a8803f87e72418 (patch) | |
tree | e0db44c67457bae957c266ef58279b9510640b10 /protocols | |
parent | 8b4e84a22a38c9a7cf81907394734c4c3f919919 (diff) |
Omegle: Remove unused error code
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Omegle/src/communication.cpp | 6 | ||||
-rw-r--r-- | protocols/Omegle/src/http.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/protocols/Omegle/src/communication.cpp b/protocols/Omegle/src/communication.cpp index 65baff0dee..efcc37271a 100644 --- a/protocols/Omegle/src/communication.cpp +++ b/protocols/Omegle/src/communication.cpp @@ -668,7 +668,6 @@ bool Omegle_client::events() // timeout return HANDLE_SUCCESS; - case HTTP_CODE_FAKE_ERROR: default: return HANDLE_ERROR(false); } @@ -690,7 +689,6 @@ bool Omegle_client::send_message(const std::string &message_text) return HANDLE_SUCCESS; } - case HTTP_CODE_FAKE_ERROR: case HTTP_CODE_FAKE_DISCONNECTED: default: return HANDLE_ERROR(false); @@ -712,7 +710,6 @@ bool Omegle_client::typing_start() return HANDLE_SUCCESS; } - case HTTP_CODE_FAKE_ERROR: case HTTP_CODE_FAKE_DISCONNECTED: default: return HANDLE_ERROR(false); @@ -734,7 +731,6 @@ bool Omegle_client::typing_stop() return HANDLE_SUCCESS; } - case HTTP_CODE_FAKE_ERROR: case HTTP_CODE_FAKE_DISCONNECTED: default: return HANDLE_ERROR(false); @@ -759,7 +755,6 @@ bool Omegle_client::recaptcha() return handle_success( "typing_start" ); }*/ - case HTTP_CODE_FAKE_ERROR: case HTTP_CODE_FAKE_DISCONNECTED: default: return HANDLE_ERROR(false); @@ -778,7 +773,6 @@ std::string Omegle_client::get_page(const int request_type) HANDLE_SUCCESS; break; - case HTTP_CODE_FAKE_ERROR: case HTTP_CODE_FAKE_DISCONNECTED: default: HANDLE_ERROR(false); diff --git a/protocols/Omegle/src/http.h b/protocols/Omegle/src/http.h index 7c1cc53bcf..a94cc7b3c2 100644 --- a/protocols/Omegle/src/http.h +++ b/protocols/Omegle/src/http.h @@ -23,7 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once
#define HTTP_CODE_FAKE_DISCONNECTED 0
-#define HTTP_CODE_FAKE_ERROR 1
namespace http
{
|