diff --git a/xpcom/ds/nsTHashtable.h b/xpcom/ds/nsTHashtable.h index 030db73ecc5f..22766a46b699 100644 --- a/xpcom/ds/nsTHashtable.h +++ b/xpcom/ds/nsTHashtable.h @@ -12,7 +12,6 @@ #include "mozilla/Assertions.h" #include "mozilla/Attributes.h" #include "mozilla/fallible.h" -#include "mozilla/MemoryChecking.h" #include "mozilla/MemoryReporting.h" #include "mozilla/Move.h" #include "mozilla/OperatorNewExtensions.h" @@ -380,9 +379,6 @@ template nsTHashtable::nsTHashtable(nsTHashtable&& aOther) : mTable(mozilla::Move(aOther.mTable)) { - // aOther shouldn't touch mTable after this, because we've stolen the table's - // pointers but not overwitten them. - MOZ_MAKE_MEM_UNDEFINED(&aOther.mTable, sizeof(aOther.mTable)); } template