Index: ui/base/dragdrop/os_exchange_data_win_unittest.cc |
diff --git a/ui/base/dragdrop/os_exchange_data_win_unittest.cc b/ui/base/dragdrop/os_exchange_data_win_unittest.cc |
index 1040ecfd279a6f2600b329403c94ec3c2a025f7e..010430709a5ae70a96ff0d2eaa04f273e950366f 100644 |
--- a/ui/base/dragdrop/os_exchange_data_win_unittest.cc |
+++ b/ui/base/dragdrop/os_exchange_data_win_unittest.cc |
@@ -49,8 +49,6 @@ TEST(OSExchangeDataWinTest, StringDataWritingViaCOM) { |
STGMEDIUM medium; |
medium.tymed = TYMED_HGLOBAL; |
HGLOBAL glob = GlobalAlloc(GPTR, sizeof(wchar_t) * (input.size() + 1)); |
- size_t stringsz = input.size(); |
- SIZE_T sz = GlobalSize(glob); |
base::win::ScopedHGlobal<wchar_t*> global_lock(glob); |
wchar_t* buffer_handle = global_lock.get(); |
wcscpy_s(buffer_handle, input.size() + 1, input.c_str()); |
@@ -87,8 +85,6 @@ TEST(OSExchangeDataWinTest, RemoveData) { |
medium.tymed = TYMED_HGLOBAL; |
{ |
HGLOBAL glob = GlobalAlloc(GPTR, sizeof(wchar_t) * (input.size() + 1)); |
- size_t stringsz = input.size(); |
- SIZE_T sz = GlobalSize(glob); |
base::win::ScopedHGlobal<wchar_t*> global_lock(glob); |
wchar_t* buffer_handle = global_lock.get(); |
wcscpy_s(buffer_handle, input.size() + 1, input.c_str()); |
@@ -99,8 +95,6 @@ TEST(OSExchangeDataWinTest, RemoveData) { |
// This should clobber the existing data. |
{ |
HGLOBAL glob = GlobalAlloc(GPTR, sizeof(wchar_t) * (input2.size() + 1)); |
- size_t stringsz = input2.size(); |
- SIZE_T sz = GlobalSize(glob); |
base::win::ScopedHGlobal<wchar_t*> global_lock(glob); |
wchar_t* buffer_handle = global_lock.get(); |
wcscpy_s(buffer_handle, input2.size() + 1, input2.c_str()); |