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

Side by Side Diff: voice_engine/statistics.cc

Issue 3018523002: Clean out unused methods from VoiceEngine and VoEBase. (Closed)
Patch Set: rebase Created 3 years, 3 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 unified diff | Download patch
« no previous file with comments | « voice_engine/statistics.h ('k') | voice_engine/voe_base_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 sprintf(traceMessage, "%s (error=%d)", msg, error); 74 sprintf(traceMessage, "%s (error=%d)", msg, error);
75 75
76 WEBRTC_TRACE(level, kTraceVoice, VoEId(_instanceId,-1), "%s", 76 WEBRTC_TRACE(level, kTraceVoice, VoEId(_instanceId,-1), "%s",
77 traceMessage); 77 traceMessage);
78 78
79 rtc::CritScope cs(&lock_); 79 rtc::CritScope cs(&lock_);
80 _lastError = error; 80 _lastError = error;
81 return 0; 81 return 0;
82 } 82 }
83 83
84 int32_t Statistics::LastError() const
85 {
86 int32_t ret;
87 {
88 rtc::CritScope cs(&lock_);
89 ret = _lastError;
90 }
91 WEBRTC_TRACE(kTraceStateInfo, kTraceVoice, VoEId(_instanceId, -1),
92 "LastError() => %d", ret);
93 return ret;
94 }
95
96 } // namespace voe 84 } // namespace voe
97 85
98 } // namespace webrtc 86 } // namespace webrtc
OLDNEW
« no previous file with comments | « voice_engine/statistics.h ('k') | voice_engine/voe_base_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698