Skip to content

Commit 55b51c6

Browse files
committed
Revert ToS link
Reverting as this needs confirmation on the right url
1 parent eba9617 commit 55b51c6

3 files changed

Lines changed: 0 additions & 12 deletions

File tree

WordPress/src/main/java/org/wordpress/android/ui/about/UnifiedAboutViewModel.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ class UnifiedAboutViewModel @Inject constructor(
118118
null
119119
}
120120

121-
private fun termsOfServiceUrl() = if (buildConfig.isJetpackApp) {
122-
wpUrlUtils.buildTermsOfServiceUrl(contextProvider.getContext())
123-
} else {
124-
wpUrlUtils.buildPatchedUrl(contextProvider.getContext(), WP_TOS_URL)
125-
}
126-
127121
companion object {
128122
private const val BLOG_ITEM_NAME = "blog"
129123
private const val LICENSES_FILE_URL = "file:///android_asset/licenses.html"
@@ -132,7 +126,6 @@ class UnifiedAboutViewModel @Inject constructor(
132126
private const val WP_APPS_URL = "https://apps.wordpress.com"
133127
private const val WP_BLOG_URL = "https://wordpress.org/news/"
134128
private const val WP_CONTRIBUTE_URL = "https://make.wordpress.org/mobile/handbook/"
135-
private const val WP_TOS_URL = "https://wordpress.org/about"
136129

137130
private const val JP_SOCIAL_HANDLE = "jetpack"
138131
private const val JP_APPS_URL = "https://jetpack.com/app"

WordPress/src/main/java/org/wordpress/android/util/WPUrlUtils.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,4 @@ public static boolean isGravatar(URL url) {
5252
public static String buildTermsOfServiceUrl(Context context) {
5353
return Constants.URL_TOS + "?locale=" + LanguageUtils.getPatchedCurrentDeviceLanguage(context);
5454
}
55-
56-
public static String buildPatchedUrl(Context context, String url) {
57-
return url + "?locale=" + LanguageUtils.getPatchedCurrentDeviceLanguage(context);
58-
}
5955
}

WordPress/src/main/java/org/wordpress/android/util/WpUrlUtilsWrapper.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ import javax.inject.Inject
66
class WpUrlUtilsWrapper @Inject constructor() {
77
fun isWordPressCom(interceptedUri: String?) = WPUrlUtils.isWordPressCom(interceptedUri)
88
fun buildTermsOfServiceUrl(context: Context): String = WPUrlUtils.buildTermsOfServiceUrl(context)
9-
fun buildPatchedUrl(context: Context, url: String): String = WPUrlUtils.buildPatchedUrl(context, url)
109
}

0 commit comments

Comments
 (0)