Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: ui/base/test/ui_controls_internal_win.cc

Issue 1255073002: clang/win: Fix most -Wunused-function warnings in Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/test/ui_controls_internal_win.cc
diff --git a/ui/base/test/ui_controls_internal_win.cc b/ui/base/test/ui_controls_internal_win.cc
index 3667bcf7c4e7d3e59318d0750de3b8227f14780a..0dadb6d592e569c26c3511c9da41a9ea961172c4 100644
--- a/ui/base/test/ui_controls_internal_win.cc
+++ b/ui/base/test/ui_controls_internal_win.cc
@@ -148,19 +148,6 @@ bool FillKeyboardInput(ui::KeyboardCode key, INPUT* input, bool key_up) {
return true;
}
-// Send a key event (up/down)
-bool SendKeyEvent(ui::KeyboardCode key, bool up) {
- INPUT input = { 0 };
-
- if (!FillKeyboardInput(key, &input, up))
- return false;
-
- if (!::SendInput(1, &input, sizeof(INPUT)))
- return false;
-
- return true;
-}
-
} // namespace
namespace ui_controls {

Powered by Google App Engine
This is Rietveld 408576698