From b5e269487abff7ec02cc2e4529ac244d83a5b0d4 Mon Sep 17 00:00:00 2001 From: arkon Date: Thu, 8 Sep 2022 09:28:32 -0400 Subject: [PATCH] No-op StubbedCookieManager functions that return nothing --- .../androidcompat/androidimpl/StubbedCookieManager.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/AndroidCompat/src/main/java/xyz/nulldev/androidcompat/androidimpl/StubbedCookieManager.kt b/AndroidCompat/src/main/java/xyz/nulldev/androidcompat/androidimpl/StubbedCookieManager.kt index 4b94896..f773b62 100644 --- a/AndroidCompat/src/main/java/xyz/nulldev/androidcompat/androidimpl/StubbedCookieManager.kt +++ b/AndroidCompat/src/main/java/xyz/nulldev/androidcompat/androidimpl/StubbedCookieManager.kt @@ -14,7 +14,6 @@ class StubbedCookieManager : CookieManager() { } override fun setAcceptThirdPartyCookies(webview: WebView?, accept: Boolean) { - throw NotImplementedError() } override fun acceptThirdPartyCookies(webview: WebView?): Boolean { @@ -22,11 +21,9 @@ class StubbedCookieManager : CookieManager() { } override fun setCookie(url: String, value: String) { - throw NotImplementedError() } override fun setCookie(url: String?, value: String?, callback: ValueCallback?) { - throw NotImplementedError() } override fun getCookie(url: String?): String { @@ -38,19 +35,15 @@ class StubbedCookieManager : CookieManager() { } override fun removeSessionCookie() { - throw NotImplementedError() } override fun removeSessionCookies(callback: ValueCallback?) { - throw NotImplementedError() } override fun removeAllCookie() { - throw NotImplementedError() } override fun removeAllCookies(callback: ValueCallback?) { - throw NotImplementedError() } override fun hasCookies(): Boolean { @@ -62,11 +55,9 @@ class StubbedCookieManager : CookieManager() { } override fun removeExpiredCookie() { - throw NotImplementedError() } override fun flush() { - throw NotImplementedError() } override fun allowFileSchemeCookiesImpl(): Boolean { @@ -74,6 +65,5 @@ class StubbedCookieManager : CookieManager() { } override fun setAcceptFileSchemeCookiesImpl(accept: Boolean) { - throw NotImplementedError() } } \ No newline at end of file