Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: webrtc/libjingle/session/transportparser.cc

Issue 1175243003: Remove webrtc/libjingle/{examples,session}. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/libjingle/session/transportparser.h ('k') | webrtc/libjingle/session/transportparser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/libjingle/session/transportparser.cc
diff --git a/webrtc/libjingle/session/transportparser.cc b/webrtc/libjingle/session/transportparser.cc
deleted file mode 100644
index d438f8e6e7db055ec0838081ed54bbdf26f7cf88..0000000000000000000000000000000000000000
--- a/webrtc/libjingle/session/transportparser.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright 2004 The WebRTC Project Authors. All rights reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#include "webrtc/libjingle/session/transportparser.h"
-
-#include "webrtc/libjingle/session/parsing.h"
-#include "webrtc/libjingle/xmllite/xmlelement.h"
-#include "webrtc/libjingle/xmpp/constants.h"
-
-namespace cricket {
-
-bool TransportParser::ParseAddress(const buzz::XmlElement* elem,
- const buzz::QName& address_name,
- const buzz::QName& port_name,
- rtc::SocketAddress* address,
- ParseError* error) {
- if (!elem->HasAttr(address_name))
- return BadParse("address does not have " + address_name.LocalPart(), error);
- if (!elem->HasAttr(port_name))
- return BadParse("address does not have " + port_name.LocalPart(), error);
-
- address->SetIP(elem->Attr(address_name));
- std::istringstream ist(elem->Attr(port_name));
- int port = 0;
- ist >> port;
- address->SetPort(port);
-
- return true;
-}
-
-} // namespace cricket
« no previous file with comments | « webrtc/libjingle/session/transportparser.h ('k') | webrtc/libjingle/session/transportparser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698