Bug 1109592 - Cleanup unused variables and fields from NFC's IPC code. r=allstars.chh

This commit is contained in:
Thomas Zimmermann 2015-03-06 05:54:00 -05:00
parent 2b228f8626
commit d305be8964
2 changed files with 1 additions and 13 deletions

View File

@ -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();
}

View File

@ -81,8 +81,6 @@ private:
private:
NfcSocketListener* mListener;
nsCString mAddress;
bool mShutdown;
};
} // namespace ipc