зеркало из https://github.com/mozilla/gecko-dev.git
Bug 936336 - Remove unused private member variable MacIOAutoObservation::mFd. r=jonasfj
This commit is contained in:
Родитель
b15d15ee68
Коммит
670d30dca6
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче