From 856eb2518323ffb69e93af803b3cbe478d62a538 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Thu, 9 Jun 2022 09:06:49 +0200 Subject: [PATCH] remove unused SetCnameIfEmpty BUG=None Change-Id: I3a2012b7d763efbbf79a6c39afc016b81d2d9af2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/265385 Reviewed-by: Harald Alvestrand Commit-Queue: Philipp Hancke Cr-Commit-Position: refs/heads/main@{#37175} --- pc/session_description.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pc/session_description.h b/pc/session_description.h index 9aa8e3556a..a7259e1f1d 100644 --- a/pc/session_description.h +++ b/pc/session_description.h @@ -183,14 +183,6 @@ class MediaContentDescription { AddStream(sp); } - // Sets the CNAME of all StreamParams if it have not been set. - virtual void SetCnameIfEmpty(const std::string& cname) { - for (cricket::StreamParamsVec::iterator it = send_streams_.begin(); - it != send_streams_.end(); ++it) { - if (it->cname.empty()) - it->cname = cname; - } - } virtual uint32_t first_ssrc() const { if (send_streams_.empty()) { return 0;