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

Unified Diff: webrtc/media/base/mediachannel.h

Issue 2924393002: Move MinPositive to call.h (Closed)
Patch Set: Created 3 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
Index: webrtc/media/base/mediachannel.h
diff --git a/webrtc/media/base/mediachannel.h b/webrtc/media/base/mediachannel.h
index 40869594e58956c2d3edc34ad5303732b318800a..a2106a2778cd87d160aba439de3ff1d07d0fa7ae 100644
--- a/webrtc/media/base/mediachannel.h
+++ b/webrtc/media/base/mediachannel.h
@@ -11,7 +11,6 @@
#ifndef WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_
#define WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_
-#include <algorithm>
#include <memory>
#include <string>
#include <vector>
@@ -81,17 +80,6 @@ static std::string VectorToString(const std::vector<T>& vals) {
return ost.str();
}
-template <typename T>
-static T MinPositive(T a, T b) {
- if (a <= 0) {
- return b;
- }
- if (b <= 0) {
- return a;
- }
- return std::min(a, b);
-}
-
// Construction-time settings, passed on when creating
// MediaChannels.
struct MediaConfig {

Powered by Google App Engine
This is Rietveld 408576698