Bug 936336 - Remove unused private member variable MacIOAutoObservation::mFd. r=jonasfj

This commit is contained in:
Chris Peterson 2013-11-07 20:13:20 -08:00
Родитель b15d15ee68
Коммит 670d30dca6
1 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -56,8 +56,7 @@ class MacIOAutoObservation : public IOInterposeObserver::Observation
public: public:
MacIOAutoObservation(IOInterposeObserver::Operation aOp, MacIOAutoObservation(IOInterposeObserver::Operation aOp,
const char* aReference, int aFd) const char* aReference, int aFd)
: mFd(aFd), : mShouldObserve(sIsEnabled && IOInterposer::IsObservedOperation(aOp) &&
mShouldObserve(sIsEnabled && IOInterposer::IsObservedOperation(aOp) &&
!IsDebugFile(aFd)) !IsDebugFile(aFd))
{ {
if (mShouldObserve) { if (mShouldObserve) {
@ -70,8 +69,7 @@ public:
MacIOAutoObservation(IOInterposeObserver::Operation aOp, MacIOAutoObservation(IOInterposeObserver::Operation aOp,
const char* aReference, int aFd, const void *aBuf, const char* aReference, int aFd, const void *aBuf,
size_t aCount) size_t aCount)
: mFd(aFd), : mShouldObserve(sIsEnabled && IOInterposer::IsObservedOperation(aOp) &&
mShouldObserve(sIsEnabled && IOInterposer::IsObservedOperation(aOp) &&
!IsDebugFile(aFd)) !IsDebugFile(aFd))
{ {
if (mShouldObserve) { if (mShouldObserve) {
@ -95,7 +93,6 @@ public:
} }
private: private:
int mFd;
bool mShouldObserve; bool mShouldObserve;
}; };
@ -337,4 +334,4 @@ void ClearPoisonIOInterposer() {
sIsEnabled = false; sIsEnabled = false;
} }
} // namespace mozilla } // namespace mozilla