From e987a47f95abc4fe9ea649cf9e70eaf30175f813 Mon Sep 17 00:00:00 2001 From: mgiuca Date: Thu, 9 Jul 2015 00:53:56 -0700 Subject: [PATCH] Removed some unused variables in Windows code. Note: Regarding the ICMP6_CLOSE_FUNC variable in winping.cc, Icmp6CloseHandle does not exist, and IcmpCloseHandle is the correct way to close an IPv6 handle. Therefore the existing code is correct to use close_ on both types of connections and this variable is unnecessary. BUG=505319 Review URL: https://codereview.webrtc.org/1231653003 Cr-Commit-Position: refs/heads/master@{#9555} --- webrtc/base/winping.cc | 1 - webrtc/modules/desktop_capture/win/cursor.cc | 1 - 2 files changed, 2 deletions(-) diff --git a/webrtc/base/winping.cc b/webrtc/base/winping.cc index 7d6ee22a95..fa8dfc2877 100644 --- a/webrtc/base/winping.cc +++ b/webrtc/base/winping.cc @@ -124,7 +124,6 @@ const char * const ICMP_CREATE_FUNC = "IcmpCreateFile"; const char * const ICMP_CLOSE_FUNC = "IcmpCloseHandle"; const char * const ICMP_SEND_FUNC = "IcmpSendEcho"; const char * const ICMP6_CREATE_FUNC = "Icmp6CreateFile"; -const char * const ICMP6_CLOSE_FUNC = "Icmp6CloseHandle"; const char * const ICMP6_SEND_FUNC = "Icmp6SendEcho2"; inline uint32 ReplySize(uint32 data_size, int family) { diff --git a/webrtc/modules/desktop_capture/win/cursor.cc b/webrtc/modules/desktop_capture/win/cursor.cc index 35c5190b72..cabe5656dc 100644 --- a/webrtc/modules/desktop_capture/win/cursor.cc +++ b/webrtc/modules/desktop_capture/win/cursor.cc @@ -50,7 +50,6 @@ const uint32_t kPixelRgbaWhite = RGBA(0xff, 0xff, 0xff, 0xff); const uint32_t kPixelRgbaTransparent = RGBA(0, 0, 0, 0); const uint32_t kPixelRgbWhite = RGB(0xff, 0xff, 0xff); -const uint32_t kPixelRgbBlack = RGB(0, 0, 0); // Expands the cursor shape to add a white outline for visibility against // dark backgrounds.