From 4d113e5efe56850e90ed302244a8803f87e72418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 20 Aug 2017 15:03:12 +0200 Subject: Omegle: Remove unused error code --- protocols/Omegle/src/communication.cpp | 6 ------ protocols/Omegle/src/http.h | 1 - 2 files changed, 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 . #pragma once #define HTTP_CODE_FAKE_DISCONNECTED 0 -#define HTTP_CODE_FAKE_ERROR 1 namespace http { -- cgit v1.2.3