Skip to content

Commit

Permalink
fix: remove unused statsig logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shottah committed Dec 3, 2024
1 parent 7b3aa45 commit 5730058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/home/NotificationCenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import SimpleMessagingCard from 'src/components/SimpleMessagingCard'
import EscrowedPaymentListItem from 'src/escrow/EscrowedPaymentListItem'
import { getReclaimableEscrowPayments } from 'src/escrow/reducer'
import { CLEVERTAP_PRIORITY, INVITES_PRIORITY, useSimpleActions } from 'src/home/NotificationBox'
import { cleverTapInboxMessagesSelector } from 'src/home/selectors'
import { Notification, NotificationBannerCTATypes, NotificationType } from 'src/home/types'
import ThumbsUpIllustration from 'src/icons/ThumbsUpIllustration'
import { Screens } from 'src/navigator/Screens'
Expand All @@ -30,7 +29,8 @@ function useCleverTapNotifications() {
const { t } = useTranslation()
const dispatch = useDispatch()

const messages = useSelector(cleverTapInboxMessagesSelector)
// const messages = useSelector(cleverTapInboxMessagesSelector)
const messages: any[] = []

return useMemo(() => {
const notifications: Notification[] = []
Expand Down
7 changes: 0 additions & 7 deletions src/statsig/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ export function getExperimentParams<T extends Record<string, StatsigParameter>>(
}
return getParams({ config: experiment, defaultValues })
} catch (error) {
Logger.warn(
TAG,
`getExperimentParams: Error getting params for experiment: ${experimentName}`,
error
)
return defaultValues
}
}
Expand All @@ -81,7 +76,6 @@ export function getDynamicConfigParams<T extends Record<string, StatsigParameter
}
return getParams({ config, defaultValues })
} catch (error) {
Logger.warn(TAG, `Error getting params for dynamic config: ${configName}`, error)
return defaultValues
}
}
Expand All @@ -90,7 +84,6 @@ export function getFeatureGate(featureGateName: StatsigFeatureGates) {
try {
return Statsig.checkGate(featureGateName)
} catch (error) {
Logger.warn(TAG, `Error getting feature gate: ${featureGateName}`, error)
return FeatureGates[featureGateName]
}
}
Expand Down

0 comments on commit 5730058

Please sign in to comment.