mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1163201 - Part 3: Remove mSamples in |MediaEngineWebRTCAudioSource|. r=cpeterson
|mSamples| was made protected just to satisfy a warning if PR_LOGGING was not set. As it turns out the warning is correct and mSamples is not used, so lets remove it.
This commit is contained in:
parent
47d9aba92d
commit
09ad989d55
@ -137,7 +137,6 @@ public:
|
||||
MediaEngineWebRTCAudioSource(nsIThread* aThread, webrtc::VoiceEngine* aVoiceEnginePtr,
|
||||
int aIndex, const char* name, const char* uuid)
|
||||
: MediaEngineAudioSource(kReleased)
|
||||
, mSamples(0)
|
||||
, mVoiceEngine(aVoiceEnginePtr)
|
||||
, mMonitor("WebRTCMic.Monitor")
|
||||
, mThread(aThread)
|
||||
@ -199,12 +198,6 @@ public:
|
||||
protected:
|
||||
~MediaEngineWebRTCAudioSource() { Shutdown(); }
|
||||
|
||||
// mSamples is an int to avoid conversions when comparing/etc to
|
||||
// samplingFreq & length. Making mSamples protected instead of private is a
|
||||
// silly way to avoid -Wunused-private-field warnings when PR_LOGGING is not
|
||||
// #defined. mSamples is not actually expected to be used by a derived class.
|
||||
int mSamples;
|
||||
|
||||
private:
|
||||
void Init();
|
||||
void Shutdown();
|
||||
|
Loading…
Reference in New Issue
Block a user