diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 16:42:11 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 16:42:11 +0000 |
commit | c50ea5673db7c24d0b29c4757b91bc892bf5535a (patch) | |
tree | f78d49a08c214dde7910a09710a1bee800003de3 | |
parent | d4d58c6f71800542818bdf8cc48da36d31deaac8 (diff) | |
download | chromium_src-c50ea5673db7c24d0b29c4757b91bc892bf5535a.zip chromium_src-c50ea5673db7c24d0b29c4757b91bc892bf5535a.tar.gz chromium_src-c50ea5673db7c24d0b29c4757b91bc892bf5535a.tar.bz2 |
Removes some unneeded/unused methods from tab related classes.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6598083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76550 0039d316-1c4b-4281-b951-d872f2087c98
5 files changed, 0 insertions, 15 deletions
diff --git a/chrome/browser/ui/views/tabs/base_tab_strip.cc b/chrome/browser/ui/views/tabs/base_tab_strip.cc index e085be4..35c1e66 100644 --- a/chrome/browser/ui/views/tabs/base_tab_strip.cc +++ b/chrome/browser/ui/views/tabs/base_tab_strip.cc @@ -133,10 +133,6 @@ bool BaseTabStrip::IsAnimating() const { return bounds_animator_.IsAnimating(); } -BaseTab* BaseTabStrip::GetSelectedBaseTab() const { - return GetBaseTabAtModelIndex(controller_->GetSelectedIndex()); -} - void BaseTabStrip::AddTabAt(int model_index, bool foreground, const TabRendererData& data) { diff --git a/chrome/browser/ui/views/tabs/base_tab_strip.h b/chrome/browser/ui/views/tabs/base_tab_strip.h index 6868608..34fd070 100644 --- a/chrome/browser/ui/views/tabs/base_tab_strip.h +++ b/chrome/browser/ui/views/tabs/base_tab_strip.h @@ -53,9 +53,6 @@ class BaseTabStrip : public views::View, // Stops all tab higlighting. virtual void StopAllHighlighting() = 0; - // Returns the selected tab. - virtual BaseTab* GetSelectedBaseTab() const; - // Retrieves the ideal bounds for the Tab at the specified index. const gfx::Rect& ideal_bounds(int tab_data_index) { return tab_data_[tab_data_index].ideal_bounds; diff --git a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc index 74b7fc6..5038265 100644 --- a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc +++ b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc @@ -185,10 +185,6 @@ bool BrowserTabStripController::IsValidIndex(int index) const { return model_->ContainsIndex(index); } -int BrowserTabStripController::GetSelectedIndex() const { - return model_->selected_index(); -} - bool BrowserTabStripController::IsTabSelected(int model_index) const { return model_->selected_index() == model_index; } diff --git a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.h b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.h index e7e9915..a0c0c73 100644 --- a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.h +++ b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.h @@ -42,7 +42,6 @@ class BrowserTabStripController : public TabStripController, // TabStripController implementation: virtual int GetCount() const; virtual bool IsValidIndex(int model_index) const; - virtual int GetSelectedIndex() const; virtual bool IsTabSelected(int model_index) const; virtual bool IsTabPinned(int model_index) const; virtual bool IsTabCloseable(int model_index) const; diff --git a/chrome/browser/ui/views/tabs/tab_strip_controller.h b/chrome/browser/ui/views/tabs/tab_strip_controller.h index ca4bd10..835f95d 100644 --- a/chrome/browser/ui/views/tabs/tab_strip_controller.h +++ b/chrome/browser/ui/views/tabs/tab_strip_controller.h @@ -26,9 +26,6 @@ class TabStripController { // Returns true if |index| is a valid model index. virtual bool IsValidIndex(int index) const = 0; - // Returns the selected index, in terms of the model. - virtual int GetSelectedIndex() const = 0; - // Returns true if the selected index is selected. virtual bool IsTabSelected(int index) const = 0; |