Commit 0b1eb8a7 authored by dfalcantara's avatar dfalcantara Committed by Commit bot

Remove pseudo-deprecated methods

Got replaced by a different function.

BUG=457427

Review URL: https://codereview.chromium.org/972253002

Cr-Commit-Position: refs/heads/master@{#318988}
parent ff5eb768
...@@ -161,12 +161,6 @@ public interface DocumentTabModel extends TabModel { ...@@ -161,12 +161,6 @@ public interface DocumentTabModel extends TabModel {
*/ */
void updateEntry(Intent intent, Tab tab); void updateEntry(Intent intent, Tab tab);
/**
* Adds the given Tab to this TabModel.
* @param tab Tab to add.
*/
void addTab(Tab tab);
/** /**
* Adds the given Tab to this TabModel. * Adds the given Tab to this TabModel.
* @param intent Intent of the DocumentActivity. * @param intent Intent of the DocumentActivity.
......
...@@ -863,13 +863,6 @@ public class DocumentTabModelImpl extends TabModelJniBridge implements DocumentT ...@@ -863,13 +863,6 @@ public class DocumentTabModelImpl extends TabModelJniBridge implements DocumentT
mObservers.clear(); mObservers.clear();
} }
@Override
public void addTab(Tab tab) {
int parentIndex = indexOf(tab.getParentId());
int index = parentIndex == -1 ? getCount() : parentIndex + 1;
addTab(tab, index, tab.getLaunchType());
}
@Override @Override
public void addTab(Intent intent, Tab tab) { public void addTab(Intent intent, Tab tab) {
int parentIndex = indexOf(tab.getParentId()); int parentIndex = indexOf(tab.getParentId());
......
...@@ -107,12 +107,6 @@ public class OffTheRecordDocumentTabModel extends OffTheRecordTabModel implement ...@@ -107,12 +107,6 @@ public class OffTheRecordDocumentTabModel extends OffTheRecordTabModel implement
return getDelegateDocumentTabModel().getInitialUrlForDocument(tabId); return getDelegateDocumentTabModel().getInitialUrlForDocument(tabId);
} }
@Override
public void addTab(Tab tab) {
ensureTabModelImpl();
getDelegateDocumentTabModel().addTab(tab);
}
@Override @Override
public void addTab(Intent intent, Tab tab) { public void addTab(Intent intent, Tab tab) {
ensureTabModelImpl(); ensureTabModelImpl();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment