From 528d588d1f205f1e67b9eac969c0271353294364 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Fri, 6 Mar 2015 05:54:00 -0500 Subject: [PATCH] Bug 1109592 - Cleanup unused variables and fields from NFC's IPC code. r=allstars.chh --- ipc/nfc/Nfc.cpp | 12 +----------- ipc/nfc/Nfc.h | 2 -- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/ipc/nfc/Nfc.cpp b/ipc/nfc/Nfc.cpp index 3004c9ea490..3d032021768 100644 --- a/ipc/nfc/Nfc.cpp +++ b/ipc/nfc/Nfc.cpp @@ -28,12 +28,6 @@ using namespace mozilla::ipc; namespace { -static const char NFC_SOCKET_NAME[] = "/dev/socket/nfcd"; - -// Network port to connect to for adb forwarded sockets when doing -// desktop development. -static const uint32_t NFC_TEST_PORT = 6400; - class SendNfcSocketDataTask MOZ_FINAL : public nsRunnable { public: @@ -172,17 +166,13 @@ NfcListenSocket::OnDisconnect() NfcConsumer::NfcConsumer(NfcSocketListener* aListener) : mListener(aListener) - , mShutdown(false) -{ - mAddress = NFC_SOCKET_NAME; -} +{ } void NfcConsumer::Shutdown() { MOZ_ASSERT(NS_IsMainThread()); - mShutdown = true; Close(); } diff --git a/ipc/nfc/Nfc.h b/ipc/nfc/Nfc.h index fbca50adea1..d45de8bb379 100644 --- a/ipc/nfc/Nfc.h +++ b/ipc/nfc/Nfc.h @@ -81,8 +81,6 @@ private: private: NfcSocketListener* mListener; - nsCString mAddress; - bool mShutdown; }; } // namespace ipc