diff options
author | Anna Henningsen <anna@addaleax.net> | 2017-08-08 19:56:02 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-09-14 17:38:38 +0200 |
commit | 290315ace7eed6eeeb300754dd68fc1af4d80c9b (patch) | |
tree | db8e56c9709d43c202c58a0576091e77eb2c44c9 /src/node_file.cc | |
parent | 4ae0afb12b6d29c8bb743c4fd560a91fd626b558 (diff) | |
download | android-node-v8-290315ace7eed6eeeb300754dd68fc1af4d80c9b.tar.gz android-node-v8-290315ace7eed6eeeb300754dd68fc1af4d80c9b.tar.bz2 android-node-v8-290315ace7eed6eeeb300754dd68fc1af4d80c9b.zip |
src: refactor `#include` handling
`node_internals.h` already includes the most common headers,
so double includes can be avoided in a lot of cases. Also don’t include
`node_internals.h` from `node.h` implicitly anymore, as that is mostly
unnecessary.
PR-URL: https://github.com/nodejs/node/pull/14697
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_file.cc')
-rw-r--r-- | src/node_file.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/node_file.cc b/src/node_file.cc index cf7f1df5eb..b9b3d34f34 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -19,17 +19,13 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -#include "node.h" #include "node_buffer.h" #include "node_internals.h" #include "node_stat_watcher.h" -#include "env.h" -#include "env-inl.h" #include "req-wrap.h" #include "req-wrap-inl.h" #include "string_bytes.h" -#include "util.h" #include <fcntl.h> #include <sys/types.h> |