diff --git a/test/p2p/answerer.cpp b/test/p2p/answerer.cpp index 830fb31..a37e09b 100644 --- a/test/p2p/answerer.cpp +++ b/test/p2p/answerer.cpp @@ -62,9 +62,7 @@ int main(int argc, char **argv) { pc->onLocalDescription([](const Description &sdp) { std::string s(sdp); std::replace(s.begin(), s.end(), '\n', static_cast(94)); -#ifdef _WIN32 std::replace(s.begin(), s.end(), '\r', static_cast(95)); -#endif cout << "Local Description (Paste this to other peer):" << endl << s << endl << endl; }); @@ -123,9 +121,7 @@ int main(int argc, char **argv) { getline(cin, sdp); std::replace(sdp.begin(), sdp.end(), static_cast(94), '\n'); -#ifdef _WIN32 std::replace(sdp.begin(), sdp.end(), static_cast(95), '\r'); -#endif descPtr = std::make_unique(sdp, Description::Type::Offer, Description::Role::Passive); pc->setRemoteDescription(*descPtr); diff --git a/test/p2p/offerer.cpp b/test/p2p/offerer.cpp index e2cc1d3..8401e08 100644 --- a/test/p2p/offerer.cpp +++ b/test/p2p/offerer.cpp @@ -62,9 +62,7 @@ int main(int argc, char **argv) { pc->onLocalDescription([](const Description &sdp) { std::string s(sdp); std::replace(s.begin(), s.end(), '\n', static_cast(94)); -#ifdef _WIN32 std::replace(s.begin(), s.end(), '\r', static_cast(95)); -#endif cout << "Local Description (Paste this to other peer):" << endl << s << endl << endl; }); @@ -121,9 +119,7 @@ int main(int argc, char **argv) { getline(cin, sdp); std::replace(sdp.begin(), sdp.end(), static_cast(94), '\n'); -#ifdef _WIN32 std::replace(sdp.begin(), sdp.end(), static_cast(95), '\r'); -#endif descPtr = std::make_unique(sdp); pc->setRemoteDescription(*descPtr); break;