Bug 1391413: Remove unused Site constructor. r=sebastian
authorMichael Comella <michael.l.comella@gmail.com>
Thu, 07 Sep 2017 13:36:08 -0700
changeset 429911 9de7101c856f53d8c9fa42f0a872735c809627b3
parent 429910 1463cc055cf9f602747782bf60165475f0ebc11c
child 429912 6ea6536b380af9fce34a401d000fa8295e0427a1
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian
bugs1391413
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1391413: Remove unused Site constructor. r=sebastian MozReview-Commit-ID: F7cnUsBsmoR
mobile/android/base/java/org/mozilla/gecko/db/SuggestedSites.java
--- a/mobile/android/base/java/org/mozilla/gecko/db/SuggestedSites.java
+++ b/mobile/android/base/java/org/mozilla/gecko/db/SuggestedSites.java
@@ -106,26 +106,16 @@ public class SuggestedSites {
             this.url = json.getString(JSON_KEY_URL);
             this.title = json.getString(JSON_KEY_TITLE);
             this.imageUrl = json.getString(JSON_KEY_IMAGE_URL);
             this.bgColor = json.getString(JSON_KEY_BG_COLOR);
 
             validate();
         }
 
-        public Site(String url, String title, String imageUrl, String bgColor) {
-            this.url = url;
-            this.title = title;
-            this.imageUrl = imageUrl;
-            this.bgColor = bgColor;
-            this.restricted = false;
-
-            validate();
-        }
-
         private void validate() {
             // Site instances must have non-empty values for all properties except IDs.
             if (TextUtils.isEmpty(url) ||
                 TextUtils.isEmpty(title) ||
                 TextUtils.isEmpty(imageUrl) ||
                 TextUtils.isEmpty(bgColor)) {
                 throw new IllegalStateException("Suggested sites must have a URL, title, " +
                                                 "image URL, and background color.");