summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-07-28 15:53:24 -0700
committerMichael Kolb <kolby@google.com>2011-07-28 15:53:28 -0700
commit6d598844158407f5966bdef959a74e86e73f0c1a (patch)
tree17f208d3aec660e39753efa3eee0570e6c2dbc3b
parent02969835f7bef1e7f092b3c161aa347f6488f772 (diff)
downloadpackages_apps_Browser-6d598844158407f5966bdef959a74e86e73f0c1a.zip
packages_apps_Browser-6d598844158407f5966bdef959a74e86e73f0c1a.tar.gz
packages_apps_Browser-6d598844158407f5966bdef959a74e86e73f0c1a.tar.bz2
remove unused references
fixing the build Change-Id: I0eb96c00a50918bc2cbf588c6ee2bce8b7082358
-rw-r--r--src/com/android/browser/Controller.java15
-rw-r--r--src/com/android/browser/TabBar.java7
2 files changed, 0 insertions, 22 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 92f448c..fc4c35c 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -1636,7 +1636,6 @@ public class Controller
bookmarksOrHistoryPicker(true);
break;
- case R.id.title_bar_share_page_url:
case R.id.share_page_menu_id:
Tab currentTab = mTabControl.getCurrentTab();
if (null == currentTab) {
@@ -1703,20 +1702,6 @@ public class Controller
int id = item.getItemId();
boolean result = true;
switch (id) {
- // For the context menu from the title bar
- case R.id.title_bar_copy_page_url:
- Tab currentTab = mTabControl.getCurrentTab();
- if (null == currentTab) {
- result = false;
- break;
- }
- WebView mainView = currentTab.getWebView();
- if (null == mainView) {
- result = false;
- break;
- }
- copy(mainView.getUrl());
- break;
// -- Browser context menu
case R.id.open_context_menu_id:
case R.id.save_link_context_menu_id:
diff --git a/src/com/android/browser/TabBar.java b/src/com/android/browser/TabBar.java
index b2c2af8..2b4dd63 100644
--- a/src/com/android/browser/TabBar.java
+++ b/src/com/android/browser/TabBar.java
@@ -231,13 +231,6 @@ public class TabBar extends LinearLayout implements OnClickListener {
mUi.showTitleBar();
}
- @Override
- public void createContextMenu(ContextMenu menu) {
- MenuInflater inflater = mActivity.getMenuInflater();
- inflater.inflate(R.menu.title_context, menu);
- mActivity.onCreateContextMenu(menu, this, null);
- }
-
private TabView buildTabView(Tab tab) {
TabView tabview = new TabView(mActivity, tab);
mTabMap.put(tab, tabview);