Skip to content

Commit

Permalink
Bug 1625138 - Part 41: Remove no longer needed includes for mozilla/T…
Browse files Browse the repository at this point in the history
…ypeTraits. r=froydnj

Also adds missing includes in some files, these were previously only transivitely
included through mozilla/TypeTraits.h.

Differential Revision: https://phabricator.services.mozilla.com/D68561
  • Loading branch information
anba committed Mar 28, 2020
1 parent ecfa0bc commit 8a780d2
Show file tree
Hide file tree
Showing 89 changed files with 3 additions and 91 deletions.
1 change: 0 additions & 1 deletion browser/app/winlauncher/freestanding/SafeThreadLocal.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "mozilla/NativeNt.h"
#include "mozilla/ThreadLocal.h"
#include "mozilla/TypeTraits.h"

namespace mozilla {
namespace freestanding {
Expand Down
1 change: 0 additions & 1 deletion dom/animation/Animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "mozilla/DeclarationBlock.h"
#include "mozilla/Maybe.h" // For Maybe
#include "mozilla/StaticPrefs_dom.h"
#include "mozilla/TypeTraits.h" // For std::forward<>
#include "nsAnimationManager.h" // For CSSAnimation
#include "nsComputedDOMStyle.h"
#include "nsDOMMutationObserver.h" // For nsAutoAnimationMutationBatch
Expand Down
1 change: 0 additions & 1 deletion dom/animation/EffectCompositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "mozilla/ServoStyleSet.h"
#include "mozilla/StaticPrefs_layers.h"
#include "mozilla/StyleAnimationValue.h"
#include "mozilla/TypeTraits.h" // For std::forward<>
#include "nsContentUtils.h"
#include "nsCSSPseudoElements.h"
#include "nsCSSPropertyIDSet.h"
Expand Down
1 change: 0 additions & 1 deletion dom/animation/KeyframeEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "mozilla/StaticPrefs_dom.h"
#include "mozilla/StaticPrefs_gfx.h"
#include "mozilla/StaticPrefs_layers.h"
#include "mozilla/TypeTraits.h"
#include "Layers.h" // For Layer
#include "nsComputedDOMStyle.h" // nsComputedDOMStyle::GetComputedStyle
#include "nsContentUtils.h"
Expand Down
1 change: 0 additions & 1 deletion dom/bindings/ToJSValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#ifndef mozilla_dom_ToJSValue_h
#define mozilla_dom_ToJSValue_h

#include "mozilla/TypeTraits.h"
#include "mozilla/Assertions.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/dom/BindingUtils.h"
Expand Down
1 change: 0 additions & 1 deletion dom/canvas/ProducerConsumerQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "mozilla/ipc/ProtocolUtils.h"
#include "mozilla/Logging.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/TypeTraits.h"
#include "nsString.h"
#include "CrossProcessSemaphore.h"

Expand Down
1 change: 0 additions & 1 deletion dom/indexedDB/ActorsChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "mozilla/CycleCollectedJSRuntime.h"
#include "mozilla/Maybe.h"
#include "mozilla/SnappyUncompressInputStream.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/dom/Element.h"
#include "mozilla/dom/Event.h"
#include "mozilla/dom/PermissionMessageUtils.h"
Expand Down
1 change: 0 additions & 1 deletion dom/media/MediaEventSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "mozilla/Atomics.h"
#include "mozilla/Mutex.h"
#include "mozilla/Tuple.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/Unused.h"

#include "nsISupportsImpl.h"
Expand Down
2 changes: 0 additions & 2 deletions dom/media/doctor/DDLoggedTypeTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

#include <type_traits>

#include "mozilla/TypeTraits.h"

namespace mozilla {

// Templated struct carrying compile-time information about C++ types that may
Expand Down
1 change: 0 additions & 1 deletion dom/media/doctor/gtest/TestRollingNumber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "RollingNumber.h"

#include "mozilla/Assertions.h"
#include "mozilla/TypeTraits.h"

#include <cstdint>
#include <gtest/gtest.h>
Expand Down
1 change: 0 additions & 1 deletion dom/media/mp4/MP4Metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include <type_traits>

#include "mozilla/TypeTraits.h"
#include "mozilla/UniquePtr.h"
#include "DecoderData.h"
#include "Index.h"
Expand Down
1 change: 0 additions & 1 deletion dom/media/webaudio/WebAudioUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <cmath>
#include <limits>
#include <type_traits>
#include "mozilla/TypeTraits.h"
#include "mozilla/FloatingPoint.h"
#include "MediaSegment.h"

Expand Down
1 change: 0 additions & 1 deletion dom/promise/Promise-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <utility>

#include "mozilla/TupleCycleCollection.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/ResultExtensions.h"
#include "mozilla/dom/PromiseNativeHandler.h"

Expand Down
1 change: 0 additions & 1 deletion dom/promise/Promise.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "mozilla/Attributes.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/TimeStamp.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/WeakPtr.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/PromiseBinding.h"
Expand Down
1 change: 0 additions & 1 deletion dom/quota/ActorsParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
#include "mozilla/StaticPtr.h"
#include "mozilla/TextUtils.h"
#include "mozilla/Telemetry.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/Unused.h"
#include "mozStorageCID.h"
#include "mozStorageHelper.h"
Expand Down
1 change: 0 additions & 1 deletion gfx/2d/BasePoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <type_traits>
#include "mozilla/Attributes.h"
#include "mozilla/FloatingPoint.h"
#include "mozilla/TypeTraits.h"

namespace mozilla {
namespace gfx {
Expand Down
1 change: 0 additions & 1 deletion gfx/2d/BaseRect.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include "mozilla/Assertions.h"
#include "mozilla/FloatingPoint.h"
#include "mozilla/TypeTraits.h"
#include "Types.h"

namespace mozilla {
Expand Down
1 change: 0 additions & 1 deletion gfx/2d/Coord.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define MOZILLA_GFX_COORD_H_

#include "mozilla/Attributes.h"
#include "mozilla/TypeTraits.h" // For IsSame
#include "Types.h"
#include "BaseCoord.h"

Expand Down
1 change: 0 additions & 1 deletion gfx/2d/Point.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "BasePoint4D.h"
#include "BaseSize.h"
#include "mozilla/Maybe.h"
#include "mozilla/TypeTraits.h"

#include <cmath>
#include <type_traits>
Expand Down
1 change: 0 additions & 1 deletion ipc/glue/FileDescriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "FileDescriptor.h"

#include "mozilla/Assertions.h"
#include "mozilla/TypeTraits.h"
#include "nsDebug.h"

#ifdef XP_WIN
Expand Down
1 change: 0 additions & 1 deletion ipc/glue/IPCMessageUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#ifdef XP_WIN
# include "mozilla/TimeStamp_windows.h"
#endif
#include "mozilla/TypeTraits.h"
#include "mozilla/IntegerTypeTraits.h"
#include "mozilla/Vector.h"

Expand Down
2 changes: 0 additions & 2 deletions ipc/glue/ProtocolUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
#if defined(XP_WIN)
# include "aclapi.h"
# include "sddl.h"

# include "mozilla/TypeTraits.h"
#endif

using namespace IPC;
Expand Down
1 change: 0 additions & 1 deletion mfbt/ArrayUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
# include "mozilla/Alignment.h"
# include "mozilla/Array.h"
# include "mozilla/EnumeratedArray.h"
# include "mozilla/TypeTraits.h"

namespace mozilla {

Expand Down
1 change: 0 additions & 1 deletion mfbt/Atomics.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
#include "mozilla/Compiler.h"
#include "mozilla/TypeTraits.h"

#include <atomic>

Expand Down
1 change: 0 additions & 1 deletion mfbt/BufferList.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "mozilla/Maybe.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/ScopeExit.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/Types.h"
#include "mozilla/Vector.h"

Expand Down
1 change: 0 additions & 1 deletion mfbt/Casting.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define mozilla_Casting_h

#include "mozilla/Assertions.h"
#include "mozilla/TypeTraits.h"

#include <cstring>
#include <limits.h>
Expand Down
1 change: 0 additions & 1 deletion mfbt/CompactPair.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <utility>

#include "mozilla/Attributes.h"
#include "mozilla/TypeTraits.h"

namespace mozilla {

Expand Down
1 change: 0 additions & 1 deletion mfbt/EndianUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
#include "mozilla/Attributes.h"
#include "mozilla/Compiler.h"
#include "mozilla/DebugOnly.h"
#include "mozilla/TypeTraits.h"

#include <stdint.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions mfbt/EnumTypeTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#ifndef mozilla_EnumTypeTraits_h
#define mozilla_EnumTypeTraits_h

#include <stddef.h>
#include <type_traits>

namespace mozilla {
Expand Down
1 change: 0 additions & 1 deletion mfbt/FloatingPoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "mozilla/MathAlgorithms.h"
#include "mozilla/MemoryChecking.h"
#include "mozilla/Types.h"
#include "mozilla/TypeTraits.h"

#include <limits>
#include <stdint.h>
Expand Down
1 change: 0 additions & 1 deletion mfbt/IntegerRange.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "mozilla/Assertions.h"
#include "mozilla/ReverseIterator.h"
#include "mozilla/TypeTraits.h"

#include <type_traits>

Expand Down
2 changes: 1 addition & 1 deletion mfbt/IntegerTypeTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef mozilla_IntegerTypeTraits_h
#define mozilla_IntegerTypeTraits_h

#include "mozilla/TypeTraits.h"
#include <stddef.h>
#include <stdint.h>
#include <type_traits>

Expand Down
1 change: 0 additions & 1 deletion mfbt/Latin1.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "mozilla/JsRust.h"
#include "mozilla/Span.h"
#include "mozilla/Tuple.h"
#include "mozilla/TypeTraits.h"

#if MOZ_HAS_JSRUST()
# include "encoding_rs_mem.h"
Expand Down
1 change: 0 additions & 1 deletion mfbt/MathAlgorithms.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define mozilla_MathAlgorithms_h

#include "mozilla/Assertions.h"
#include "mozilla/TypeTraits.h"

#include <cmath>
#include <limits.h>
Expand Down
1 change: 0 additions & 1 deletion mfbt/Maybe.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "mozilla/MemoryChecking.h"
#include "mozilla/OperatorNewExtensions.h"
#include "mozilla/Poison.h"
#include "mozilla/TypeTraits.h"

class nsCycleCollectionTraversalCallback;

Expand Down
1 change: 0 additions & 1 deletion mfbt/NonDereferenceable.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
/* A pointer wrapper indicating that the pointer should not be dereferenced. */

#include "mozilla/Attributes.h"
#include "mozilla/TypeTraits.h"

#include <cstdint>

Expand Down
1 change: 0 additions & 1 deletion mfbt/NotNull.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
#include <utility>

#include "mozilla/Assertions.h"
#include "mozilla/TypeTraits.h"

namespace mozilla {

Expand Down
1 change: 0 additions & 1 deletion mfbt/Range.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#define mozilla_Range_h

#include "mozilla/RangedPtr.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/Span.h"

#include <stddef.h>
Expand Down
1 change: 0 additions & 1 deletion mfbt/RefCounted.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "mozilla/Atomics.h"
#include "mozilla/Attributes.h"
#include "mozilla/RefCountType.h"
#include "mozilla/TypeTraits.h"

#if defined(MOZILLA_INTERNAL_API)
# include "nsXPCOM.h"
Expand Down
1 change: 0 additions & 1 deletion mfbt/Result.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
#include "mozilla/Types.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/Variant.h"

namespace mozilla {
Expand Down
1 change: 0 additions & 1 deletion mfbt/ReverseIterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <utility>

#include "mozilla/Attributes.h"
#include "mozilla/TypeTraits.h"

namespace mozilla {

Expand Down
1 change: 0 additions & 1 deletion mfbt/RollingMean.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define mozilla_RollingMean_h_

#include "mozilla/Assertions.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/Vector.h"

#include <stddef.h>
Expand Down
2 changes: 1 addition & 1 deletion mfbt/Saturate.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
#define mozilla_Saturate_h

#include <limits>
#include <stdint.h>
#include <type_traits>
#include <utility>

#include "mozilla/Attributes.h"
#include "mozilla/TypeTraits.h"

namespace mozilla {
namespace detail {
Expand Down
1 change: 0 additions & 1 deletion mfbt/SegmentedVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "mozilla/LinkedList.h"
#include "mozilla/MemoryReporting.h"
#include "mozilla/OperatorNewExtensions.h"
#include "mozilla/TypeTraits.h"

namespace mozilla {

Expand Down
1 change: 0 additions & 1 deletion mfbt/Span.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include "mozilla/Assertions.h"
#include "mozilla/Casting.h"
#include "mozilla/IntegerTypeTraits.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/UniquePtr.h"

namespace mozilla {
Expand Down
1 change: 0 additions & 1 deletion mfbt/TextUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "mozilla/Assertions.h"
#include "mozilla/Latin1.h"
#include "mozilla/TypeTraits.h"

#ifdef MOZ_HAS_JSRUST
// Can't include mozilla/Encoding.h here.
Expand Down
1 change: 0 additions & 1 deletion mfbt/ThreadLocal.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#include "mozilla/Assertions.h"
#include "mozilla/Attributes.h"
#include "mozilla/TypeTraits.h"

namespace mozilla {

Expand Down
1 change: 0 additions & 1 deletion mfbt/ThreadSafeWeakPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
#include "mozilla/Atomics.h"
#include "mozilla/RefCounted.h"
#include "mozilla/RefPtr.h"
#include "mozilla/TypeTraits.h"
#include "mozilla/Unused.h"

#include <limits>
Expand Down
1 change: 0 additions & 1 deletion mfbt/Tuple.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#include "mozilla/CompactPair.h"
#include "mozilla/TemplateLib.h"
#include "mozilla/TypeTraits.h"

namespace mozilla {

Expand Down
Loading

0 comments on commit 8a780d2

Please sign in to comment.