Bug 1774863 - Cleanup mfbt includes r=sylvestre

Differential Revision: https://phabricator.services.mozilla.com/D149669
This commit is contained in:
serge-sans-paille 2022-06-22 09:47:14 +00:00
parent 02617d2f1e
commit a909699ad6
11 changed files with 6 additions and 23 deletions

View File

@ -9,7 +9,7 @@
#include "mozilla/UniquePtr.h"
#include <stddef.h>
#include <stdio.h>
#include <stdint.h>
using mozilla::BitBloomFilter;
using mozilla::CountingBloomFilter;

View File

@ -5,7 +5,8 @@
#include "mozilla/Assertions.h"
#include "mozilla/EnumTypeTraits.h"
#include "mozilla/IntegerTypeTraits.h"
#include <cstdint>
using namespace mozilla;

View File

@ -4,11 +4,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/Compiler.h"
#include "mozilla/Assertions.h"
#include "mozilla/FloatingPoint.h"
#include <cmath> // exp2
#include <float.h>
#include <math.h>
using mozilla::ExponentComponent;

View File

@ -8,7 +8,6 @@
#include "mozilla/IntegerRange.h"
#include <stddef.h>
#include <type_traits>
using mozilla::IntegerRange;
using mozilla::Reversed;

View File

@ -8,11 +8,7 @@
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
#include "mozilla/Compiler.h"
#include "mozilla/Maybe.h"
#include "mozilla/TemplateLib.h"
#include "mozilla/Types.h"
#include "mozilla/UniquePtr.h"
using mozilla::Maybe;
using mozilla::Nothing;

View File

@ -79,15 +79,12 @@
* at all. Thus, it is not used here.
*/
#include "mozilla/IntegerPrintfMacros.h"
// MAP_ANON(YMOUS) is not in any standard. Add defines as necessary.
#define _GNU_SOURCE 1
#define _DARWIN_C_SOURCE 1
#include <stddef.h>
#include <errno.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -96,10 +93,7 @@
# include <windows.h>
#else
# include <sys/types.h>
# include <fcntl.h>
# include <signal.h>
# include <unistd.h>
# include <sys/stat.h>
# include <sys/wait.h>
# include <sys/mman.h>

View File

@ -4,8 +4,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <stddef.h>
#include <type_traits>
#include <utility>

View File

@ -6,7 +6,6 @@
#include <type_traits>
#include "mozilla/Assertions.h"
#include "mozilla/TypeTraits.h"
using mozilla::IsDestructible;

View File

@ -5,7 +5,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
#include "mozilla/TypedEnumBits.h"
#include <stdint.h>

View File

@ -10,7 +10,6 @@
#include <utility>
#include "mozilla/Assertions.h"
#include "mozilla/Compiler.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/UniquePtrExtensions.h"
#include "mozilla/Vector.h"

View File

@ -12,7 +12,7 @@
#include "mozilla/Assertions.h"
#include "mozilla/EnumSet.h"
#include "mozilla/IntegerRange.h"
#include "mozilla/TextUtils.h"
#include "mozilla/Span.h"
using mozilla::ArrayLength;
using mozilla::AsChars;