@@ -92,7 +92,6 @@ void SyncProcessOutputBuffer::set_next(SyncProcessOutputBuffer* next) {
92
92
next_ = next;
93
93
}
94
94
95
-
96
95
SyncProcessStdioPipe::SyncProcessStdioPipe (SyncProcessRunner* process_handler,
97
96
bool readable,
98
97
bool writable,
@@ -115,7 +114,6 @@ SyncProcessStdioPipe::SyncProcessStdioPipe(SyncProcessRunner* process_handler,
115
114
CHECK (readable || writable);
116
115
}
117
116
118
-
119
117
SyncProcessStdioPipe::~SyncProcessStdioPipe () {
120
118
CHECK (lifecycle_ == kUninitialized || lifecycle_ == kClosed );
121
119
@@ -204,12 +202,10 @@ bool SyncProcessStdioPipe::writable() const {
204
202
return writable_;
205
203
}
206
204
207
-
208
205
bool SyncProcessStdioPipe::overlapped () const {
209
206
return overlapped_;
210
207
}
211
208
212
-
213
209
uv_stdio_flags SyncProcessStdioPipe::uv_flags () const {
214
210
unsigned int flags;
215
211
@@ -218,8 +214,7 @@ uv_stdio_flags SyncProcessStdioPipe::uv_flags() const {
218
214
flags |= UV_READABLE_PIPE;
219
215
if (writable ())
220
216
flags |= UV_WRITABLE_PIPE;
221
- if (overlapped ())
222
- flags |= UV_OVERLAPPED_PIPE;
217
+ if (overlapped ()) flags |= UV_OVERLAPPED_PIPE;
223
218
224
219
return static_cast <uv_stdio_flags>(flags);
225
220
}
@@ -970,7 +965,6 @@ int SyncProcessRunner::AddStdioIgnore(uint32_t child_fd) {
970
965
return 0 ;
971
966
}
972
967
973
-
974
968
int SyncProcessRunner::AddStdioPipe (uint32_t child_fd,
975
969
bool readable,
976
970
bool writable,
@@ -979,12 +973,8 @@ int SyncProcessRunner::AddStdioPipe(uint32_t child_fd,
979
973
CHECK_LT (child_fd, stdio_count_);
980
974
CHECK (!stdio_pipes_[child_fd]);
981
975
982
- std::unique_ptr<SyncProcessStdioPipe> h (
983
- new SyncProcessStdioPipe (this ,
984
- readable,
985
- writable,
986
- overlapped,
987
- input_buffer));
976
+ std::unique_ptr<SyncProcessStdioPipe> h (new SyncProcessStdioPipe (
977
+ this , readable, writable, overlapped, input_buffer));
988
978
989
979
int r = h->Initialize (uv_loop_);
990
980
if (r < 0 ) {
@@ -1000,7 +990,6 @@ int SyncProcessRunner::AddStdioPipe(uint32_t child_fd,
1000
990
return 0 ;
1001
991
}
1002
992
1003
-
1004
993
int SyncProcessRunner::AddStdioInheritFD (uint32_t child_fd, int inherit_fd) {
1005
994
CHECK_LT (child_fd, stdio_count_);
1006
995
CHECK (!stdio_pipes_[child_fd]);
0 commit comments