jenkins-bot has submitted this change and it was merged.

Change subject: Hygiene: remove legacy code for Site domain
......................................................................


Hygiene: remove legacy code for Site domain

Remove legacy unmarshalling code for Site.domain authority.

Change-Id: Ide22a24115e3c43f64062742a27a3cefabece1c0
---
M app/src/main/java/org/wikipedia/json/UriTypeAdapter.java
1 file changed, 1 insertion(+), 7 deletions(-)

Approvals:
  Mholloway: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/app/src/main/java/org/wikipedia/json/UriTypeAdapter.java 
b/app/src/main/java/org/wikipedia/json/UriTypeAdapter.java
index 605a7af..4f06b44 100644
--- a/app/src/main/java/org/wikipedia/json/UriTypeAdapter.java
+++ b/app/src/main/java/org/wikipedia/json/UriTypeAdapter.java
@@ -22,12 +22,6 @@
             return null;
         }
 
-        // TODO: previously, only host parts were preserved for 
WikiSite.domain. Remove in September
-        //       2016 once Gson has had a chance to deserialize.
-        if (!url.startsWith("http")) {
-            url = "https://"; + url;
-        }
-
         return Uri.parse(url);
     }
-}
\ No newline at end of file
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/314415
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ide22a24115e3c43f64062742a27a3cefabece1c0
Gerrit-PatchSet: 3
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Niedzielski <sniedziel...@wikimedia.org>
Gerrit-Reviewer: BearND <bsitzm...@wikimedia.org>
Gerrit-Reviewer: Brion VIBBER <br...@wikimedia.org>
Gerrit-Reviewer: Dbrant <dbr...@wikimedia.org>
Gerrit-Reviewer: Mholloway <mhollo...@wikimedia.org>
Gerrit-Reviewer: Niedzielski <sniedziel...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to