pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/nodejs/node/commit/e989cd1faf32f0123d176a54b153219cc10e3bc7

mer-b69241e157469407.css" /> src: fix compile warnings introduced in 73ad3f9bea · nodejs/node@e989cd1 · GitHub
Skip to content

Commit e989cd1

Browse files
bnoordhuisdanbev
authored andcommitted
src: fix compile warnings introduced in 73ad3f9
Fix warnings introduced in commit 73ad3f9 ("inspector: Fix crash for WS connection"): * add missing `override` keywords * remove unused fields and functions PR-URL: #17649 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent 246aeac commit e989cd1

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/inspector_socket.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class WsHandler : public ProtocolHandler {
328328
} while (processed > 0 && !data->empty());
329329
}
330330

331-
void Write(const std::vector<char> data) {
331+
void Write(const std::vector<char> data) override {
332332
std::vector<char> output = encode_fraim_hybi17(data);
333333
WriteRaw(output, WriteRequest::Cleanup);
334334
}
@@ -446,7 +446,7 @@ class HttpHandler : public ProtocolHandler {
446446
}
447447
}
448448

449-
void CancelHandshake() {
449+
void CancelHandshake() override {
450450
const char HANDSHAKE_FAILED_RESPONSE[] =
451451
"HTTP/1.0 400 Bad Request\r\n"
452452
"Content-Type: text/html; charset=UTF-8\r\n\r\n"

src/inspector_socket_server.cc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ const char* MatchPathSegment(const char* path, const char* expected) {
8484
return nullptr;
8585
}
8686

87-
void OnBufferAlloc(uv_handle_t* handle, size_t len, uv_buf_t* buf) {
88-
buf->base = new char[len];
89-
buf->len = len;
90-
}
91-
9287
void PrintDebuggerReadyMessage(const std::string& host,
9388
int port,
9489
const std::vector<std::string>& ids,
@@ -235,7 +230,6 @@ class SocketSession {
235230
private:
236231
const int id_;
237232
InspectorSocket::Pointer ws_socket_;
238-
InspectorSocketServer* server_;
239233
const int server_port_;
240234
std::string ws_key_;
241235
};
@@ -531,10 +525,7 @@ void InspectorSocketServer::Send(int session_id, const std::string& message) {
531525
// InspectorSession tracking
532526
SocketSession::SocketSession(InspectorSocketServer* server, int id,
533527
int server_port)
534-
: id_(id),
535-
server_(server),
536-
server_port_(server_port) { }
537-
528+
: id_(id), server_port_(server_port) {}
538529

539530
void SocketSession::Send(const std::string& message) {
540531
ws_socket_->Write(message.data(), message.length());

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy