Bug 645592 - Remove unused getTitle function. r=margaret
authorWes Johnston <wjohnston@mozilla.com>
Thu, 26 Jul 2012 13:02:27 -0700
changeset 100643 4f5722507e684b705f3f96c1dc0d64f6b1c3093f
parent 100642 a9fcfa1a0d69c6375bb83884cbfc8417745dd85b
child 100644 a329797651080172fb611cc5dc891ff93541fb20
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmargaret
bugs645592
milestone17.0a1
Bug 645592 - Remove unused getTitle function. r=margaret
mobile/android/base/Tab.java
--- a/mobile/android/base/Tab.java
+++ b/mobile/android/base/Tab.java
@@ -119,20 +119,16 @@ public final class Tab {
         return mParentId;
     }
 
     // may be null if user-entered query hasn't yet been resolved to a URI
     public String getURL() {
         return mUrl;
     }
 
-    public String getTitle() {
-        return mTitle;
-    }
-
     public String getDisplayTitle() {
         if (mTitle != null && mTitle.length() > 0) {
             return mTitle;
         }
 
         return mUrl;
     }
 
@@ -408,17 +404,17 @@ public final class Tab {
 
     public void addBookmark() {
         GeckoAppShell.getHandler().post(new Runnable() {
             public void run() {
                 String url = getURL();
                 if (url == null)
                     return;
 
-                BrowserDB.addBookmark(mContentResolver, getTitle(), url);
+                BrowserDB.addBookmark(mContentResolver, mTitle, url);
             }
         });
     }
 
     public void removeBookmark() {
         GeckoAppShell.getHandler().post(new Runnable() {
             public void run() {
                 String url = getURL();