Bug 977672: Cleanup includes and defines in UnixSocket.cpp, r=kyle
authorThomas Zimmermann <tdz@users.sourceforge.net>
Fri, 28 Feb 2014 10:16:53 +0100
changeset 171630 fc62596d4befc45d5720f487bf227ac76ee9c2f2
parent 171629 196d98e2fc8ade808ee045e93a652135f400833b
child 171631 45cb4474752cacd4cabf7d7f1675ca09631b235b
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewerskyle
bugs977672
milestone30.0a1
Bug 977672: Cleanup includes and defines in UnixSocket.cpp, r=kyle The patch removes unnecessary includes and define statements from UnixSocket.cpp.
ipc/unixsocket/UnixSocket.cpp
--- a/ipc/unixsocket/UnixSocket.cpp
+++ b/ipc/unixsocket/UnixSocket.cpp
@@ -1,44 +1,22 @@
 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
 /* vim: set ts=2 et sw=2 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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 "UnixSocket.h"
-
-#include <fcntl.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <errno.h>
-
-#include <sys/socket.h>
-
-#include "base/eintr_wrapper.h"
-#include "base/message_loop.h"
-
 #include "mozilla/ipc/UnixSocketWatcher.h"
-#include "mozilla/Monitor.h"
-#include "mozilla/FileUtils.h"
-#include "nsString.h"
 #include "nsTArray.h"
 #include "nsXULAppAPI.h"
+#include <fcntl.h>
 
 static const size_t MAX_READ_SIZE = 1 << 16;
 
-#undef CHROMIUM_LOG
-#if defined(MOZ_WIDGET_GONK)
-#include <android/log.h>
-#define CHROMIUM_LOG(args...)  __android_log_print(ANDROID_LOG_INFO, "I/O", args);
-#else
-#define IODEBUG true
-#define CHROMIUM_LOG(args...) if (IODEBUG) printf(args);
-#endif
-
 namespace mozilla {
 namespace ipc {
 
 class UnixSocketImpl : public UnixSocketWatcher
 {
 public:
   UnixSocketImpl(MessageLoop* mIOLoop,
                  UnixSocketConsumer* aConsumer, UnixSocketConnector* aConnector,