Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Unused

Manav Rathia3c51044c456
diff --git a/web/apps/photos/src/utils/billing/index.ts b/web/apps/photos/src/utils/billing/index.ts
index 654ac1cb32..50366e0407 100644
--- a/web/apps/photos/src/utils/billing/index.ts
+++ b/web/apps/photos/src/utils/billing/index.ts
@@ -13,8 +13,6 @@ import { getSubscriptionPurchaseSuccessMessage } from "utils/ui";
import { getTotalFamilyUsage, isPartOfFamily } from "utils/user/family";
const PAYMENT_PROVIDER_STRIPE = "stripe";
-const PAYMENT_PROVIDER_APPSTORE = "appstore";
-const PAYMENT_PROVIDER_PLAYSTORE = "playstore";
const FREE_PLAN = "free";
const THIRTY_DAYS_IN_MICROSECONDS = 30 * 24 * 60 * 60 * 1000 * 1000;
@@ -137,15 +135,6 @@ export function hasStripeSubscription(subscription: Subscription) {
);
}
-export function hasMobileSubscription(subscription: Subscription) {
- return (
- hasPaidSubscription(subscription) &&
- subscription.paymentProvider.length > 0 &&
- (subscription.paymentProvider === PAYMENT_PROVIDER_APPSTORE ||
- subscription.paymentProvider === PAYMENT_PROVIDER_PLAYSTORE)
- );
-}
-
export function hasExceededStorageQuota(userDetails: UserDetails) {
const bonusStorage = userDetails.storageBonus ?? 0;
if (isPartOfFamily(userDetails.familyData)) {