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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 10977073: Delete some unused code found by -Wunused-function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leiz Created 8 years, 3 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
« no previous file with comments | « base/bind_unittest.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 3cccc86ae037adb7735d0257e10c7c2fe902bc81..b16f73fab66e9487291c3c9cb84348e6f6bad69d 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -222,24 +222,6 @@ void PostTask(BrowserThread::ID id, const base::Closure& callback) {
BrowserThread::PostTask(id, FROM_HERE, callback);
}
-void SendMouseClick(int flags) {
- ui_controls::MouseButton button = ui_controls::LEFT;
- if ((flags & ui::EF_LEFT_MOUSE_BUTTON) ==
- ui::EF_LEFT_MOUSE_BUTTON) {
- button = ui_controls::LEFT;
- } else if ((flags & ui::EF_RIGHT_MOUSE_BUTTON) ==
- ui::EF_RIGHT_MOUSE_BUTTON) {
- button = ui_controls::RIGHT;
- } else if ((flags & ui::EF_MIDDLE_MOUSE_BUTTON) ==
- ui::EF_MIDDLE_MOUSE_BUTTON) {
- button = ui_controls::MIDDLE;
- } else {
- NOTREACHED();
- }
-
- ui_controls::SendMouseClick(button);
-}
-
class AutomationInterstitialPage : public content::InterstitialPageDelegate {
public:
AutomationInterstitialPage(WebContents* tab,
« no previous file with comments | « base/bind_unittest.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698