mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Bug 1624237 - Run misc-unused-using-decls - Remove useless declarations r=andi
$ ./mach static-analysis check --checks="-*, misc-unused-using-decls" --fix <path> Differential Revision: https://phabricator.services.mozilla.com/D67811 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
ca1eecaacb
commit
734f79b541
@ -50,8 +50,6 @@ JS::ubi::StackFrame DeserializedStackFrame::getParentStackFrame() const {
|
||||
namespace JS {
|
||||
namespace ubi {
|
||||
|
||||
using mozilla::devtools::DeserializedEdge;
|
||||
|
||||
const char16_t Concrete<DeserializedNode>::concreteTypeName[] =
|
||||
u"mozilla::devtools::DeserializedNode";
|
||||
|
||||
|
@ -14,8 +14,6 @@
|
||||
namespace mozilla {
|
||||
namespace devtools {
|
||||
|
||||
using ipc::FileDescriptor;
|
||||
|
||||
static bool openFileFailure(ErrorResult& rv,
|
||||
OpenHeapSnapshotTempFileResponse* outResponse) {
|
||||
*outResponse = rv.StealNSResult();
|
||||
|
@ -15,7 +15,6 @@
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
using base::Thread;
|
||||
using namespace ipc;
|
||||
using namespace layers;
|
||||
using namespace gfx;
|
||||
|
@ -25,7 +25,6 @@
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
using base::Thread;
|
||||
using dom::ContentChild;
|
||||
using namespace ipc;
|
||||
using namespace layers;
|
||||
|
@ -11,8 +11,6 @@
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
using media::TimeUnit;
|
||||
|
||||
RemoteDecoderParent::RemoteDecoderParent(RemoteDecoderManagerParent* aParent,
|
||||
TaskQueue* aManagerTaskQueue,
|
||||
TaskQueue* aDecodeTaskQueue)
|
||||
|
@ -12,8 +12,6 @@
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
using base::Thread;
|
||||
|
||||
RemoteMediaDataDecoder::RemoteMediaDataDecoder(IRemoteDecoderChild* aChild)
|
||||
: mChild(aChild) {}
|
||||
|
||||
|
@ -39,7 +39,6 @@ using mozilla::gfx::SharedDIBSurface;
|
||||
#include "ImageContainer.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using mozilla::ipc::ProcessChild;
|
||||
using namespace mozilla::plugins;
|
||||
using namespace mozilla::layers;
|
||||
using namespace mozilla::gfx;
|
||||
|
@ -41,8 +41,6 @@
|
||||
|
||||
namespace mozilla::gl {
|
||||
|
||||
using gfx::SurfaceFormat;
|
||||
|
||||
UniquePtr<GLScreenBuffer> GLScreenBuffer::Create(GLContext* gl,
|
||||
const gfx::IntSize& size,
|
||||
const SurfaceCaps& caps) {
|
||||
|
@ -85,7 +85,6 @@ namespace mozilla::ipc {
|
||||
using mozilla::dom::UDPSocketChild;
|
||||
using mozilla::net::PUDPSocketChild;
|
||||
|
||||
using mozilla::dom::LocalStorage;
|
||||
using mozilla::dom::PServiceWorkerChild;
|
||||
using mozilla::dom::PServiceWorkerContainerChild;
|
||||
using mozilla::dom::PServiceWorkerRegistrationChild;
|
||||
|
@ -78,7 +78,6 @@
|
||||
#endif
|
||||
|
||||
using mozilla::AssertIsOnMainThread;
|
||||
using mozilla::dom::FileSystemBase;
|
||||
using mozilla::dom::FileSystemRequestParent;
|
||||
using mozilla::dom::MessagePortParent;
|
||||
using mozilla::dom::MIDIManagerParent;
|
||||
@ -117,7 +116,6 @@ namespace mozilla::ipc {
|
||||
|
||||
using mozilla::dom::BroadcastChannelParent;
|
||||
using mozilla::dom::ContentParent;
|
||||
using mozilla::dom::ServiceWorkerRegistrationData;
|
||||
|
||||
BackgroundParentImpl::BackgroundParentImpl() {
|
||||
AssertIsInMainOrSocketProcess();
|
||||
|
@ -45,8 +45,6 @@
|
||||
using mozilla::AutoSafeJSContext;
|
||||
using mozilla::dom::AutoEntryScript;
|
||||
using mozilla::dom::AutoJSAPI;
|
||||
using mozilla::ipc::TestShellChild;
|
||||
using mozilla::ipc::TestShellParent;
|
||||
using mozilla::ipc::XPCShellEnvironment;
|
||||
using namespace JS;
|
||||
|
||||
|
@ -68,11 +68,8 @@ using mozilla::AssertedCast;
|
||||
using mozilla::AsVariant;
|
||||
using mozilla::Maybe;
|
||||
using mozilla::Nothing;
|
||||
using mozilla::PodCopy;
|
||||
using mozilla::PodZero;
|
||||
using mozilla::PointerRangeSize;
|
||||
using mozilla::Some;
|
||||
using mozilla::Unused;
|
||||
using mozilla::Utf8Unit;
|
||||
|
||||
using JS::AutoGCRooter;
|
||||
|
@ -49,7 +49,6 @@ using mozilla::IsNegativeZero;
|
||||
using mozilla::Maybe;
|
||||
using mozilla::NegativeInfinity;
|
||||
using mozilla::NumberEqualsInt32;
|
||||
using mozilla::NumberIsInt32;
|
||||
using mozilla::PositiveInfinity;
|
||||
using mozilla::WrappingMultiply;
|
||||
|
||||
|
@ -71,7 +71,6 @@
|
||||
|
||||
#ifdef MOZ_X11
|
||||
# include "mozilla/X11Util.h"
|
||||
using mozilla::DefaultXDisplay;
|
||||
#endif
|
||||
|
||||
#ifdef XP_WIN
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include "mozilla/UniquePtr.h"
|
||||
#include "DMD.h"
|
||||
|
||||
using mozilla::JSONWriter;
|
||||
using mozilla::MakeUnique;
|
||||
using namespace mozilla::dmd;
|
||||
|
||||
|
@ -20,7 +20,6 @@ using mozilla::Nothing;
|
||||
using mozilla::Some;
|
||||
using mozilla::SomeRef;
|
||||
using mozilla::ToMaybe;
|
||||
using mozilla::UniquePtr;
|
||||
|
||||
#define RUN_TEST(t) \
|
||||
do { \
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include "mozilla/Unused.h"
|
||||
|
||||
using mozilla::MakeNotNull;
|
||||
using mozilla::MakeUnique;
|
||||
using mozilla::NotNull;
|
||||
using mozilla::UniquePtr;
|
||||
using mozilla::WrapNotNull;
|
||||
|
@ -19,7 +19,6 @@
|
||||
|
||||
using mozilla::CheckedInt;
|
||||
using mozilla::TimeDuration;
|
||||
using mozilla::TimeStamp;
|
||||
|
||||
static const long NanoSecPerSec = 1000000000;
|
||||
|
||||
|
@ -49,7 +49,6 @@
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::psm;
|
||||
using mozilla::psm::SharedSSLState;
|
||||
|
||||
extern LazyLogModule gPIPNSSLog;
|
||||
|
||||
|
@ -18,8 +18,6 @@
|
||||
|
||||
using ::testing::EmptyTestEventListener;
|
||||
using ::testing::InitGoogleTest;
|
||||
using ::testing::Test;
|
||||
using ::testing::TestCase;
|
||||
using ::testing::TestEventListeners;
|
||||
using ::testing::TestInfo;
|
||||
using ::testing::TestPartResult;
|
||||
|
@ -12,8 +12,6 @@
|
||||
#define MOZ_GTEST_BENCH_FRAMEWORK "platform_microbench"
|
||||
#define MOZ_GTEST_NUM_ITERATIONS 5
|
||||
|
||||
using mozilla::TimeStamp;
|
||||
|
||||
namespace mozilla {
|
||||
void GTestBench(const char* aSuite, const char* aName,
|
||||
const std::function<void()>& aTest) {
|
||||
|
@ -105,9 +105,7 @@ using mozilla::Telemetry::CombinedStacks;
|
||||
using mozilla::Telemetry::EventExtraEntry;
|
||||
using mozilla::Telemetry::TelemetryIOInterposeObserver;
|
||||
using Telemetry::Common::AutoHashtable;
|
||||
using Telemetry::Common::GetCurrentProduct;
|
||||
using Telemetry::Common::StringHashSet;
|
||||
using Telemetry::Common::SupportedProduct;
|
||||
using Telemetry::Common::ToJSString;
|
||||
|
||||
#if defined(MOZ_GECKO_PROFILER)
|
||||
|
@ -31,9 +31,7 @@
|
||||
#include "TelemetryEventData.h"
|
||||
#include "TelemetryScalar.h"
|
||||
|
||||
using mozilla::ArrayLength;
|
||||
using mozilla::Maybe;
|
||||
using mozilla::Nothing;
|
||||
using mozilla::StaticAutoPtr;
|
||||
using mozilla::StaticMutex;
|
||||
using mozilla::StaticMutexAutoLock;
|
||||
@ -43,11 +41,9 @@ using mozilla::Telemetry::EventExtraEntry;
|
||||
using mozilla::Telemetry::LABELS_TELEMETRY_EVENT_RECORDING_ERROR;
|
||||
using mozilla::Telemetry::LABELS_TELEMETRY_EVENT_REGISTRATION_ERROR;
|
||||
using mozilla::Telemetry::ProcessID;
|
||||
using mozilla::Telemetry::Common::AutoHashtable;
|
||||
using mozilla::Telemetry::Common::CanRecordDataset;
|
||||
using mozilla::Telemetry::Common::CanRecordInProcess;
|
||||
using mozilla::Telemetry::Common::CanRecordProduct;
|
||||
using mozilla::Telemetry::Common::GetCurrentProduct;
|
||||
using mozilla::Telemetry::Common::GetNameForProcessID;
|
||||
using mozilla::Telemetry::Common::IsExpiredVersion;
|
||||
using mozilla::Telemetry::Common::IsInDataset;
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include <cmath>
|
||||
#include <type_traits>
|
||||
|
||||
using mozilla::ErrorResult;
|
||||
using mozilla::Get;
|
||||
using mozilla::MakeTuple;
|
||||
using mozilla::MakeUnique;
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "nsITimer.h"
|
||||
#include "nsThreadUtils.h"
|
||||
|
||||
using mozilla::Preferences;
|
||||
using mozilla::StaticAutoPtr;
|
||||
using mozilla::StaticMutex;
|
||||
using mozilla::StaticMutexAutoLock;
|
||||
|
@ -144,7 +144,6 @@ using mozilla::ipc::IOThreadChild;
|
||||
using mozilla::ipc::ProcessChild;
|
||||
using mozilla::ipc::ScopedXREEmbed;
|
||||
|
||||
using mozilla::dom::ContentChild;
|
||||
using mozilla::dom::ContentParent;
|
||||
using mozilla::dom::ContentProcess;
|
||||
using mozilla::plugins::PluginProcessChild;
|
||||
@ -153,7 +152,6 @@ using mozilla::gmp::GMPProcessChild;
|
||||
|
||||
using mozilla::ipc::TestShellCommandParent;
|
||||
using mozilla::ipc::TestShellParent;
|
||||
using mozilla::ipc::XPCShellEnvironment;
|
||||
|
||||
using mozilla::startup::sChildProcessType;
|
||||
|
||||
|
@ -140,7 +140,6 @@ using namespace mozilla;
|
||||
using namespace mozilla::gfx;
|
||||
using namespace mozilla::widget;
|
||||
using namespace mozilla::layers;
|
||||
using mozilla::gl::GLContext;
|
||||
using mozilla::gl::GLContextGLX;
|
||||
|
||||
// Don't put more than this many rects in the dirty region, just fluff
|
||||
|
@ -113,7 +113,6 @@ using namespace mozilla::layers;
|
||||
using namespace mozilla::ipc;
|
||||
using namespace mozilla::widget;
|
||||
using namespace mozilla;
|
||||
using base::Thread;
|
||||
|
||||
// Async pump timer during injected long touch taps
|
||||
#define TOUCH_INJECT_PUMP_TIMER_MSEC 50
|
||||
|
Loading…
x
Reference in New Issue
Block a user