Skip to content

Commit

Permalink
- Removes: redundant function
Browse files Browse the repository at this point in the history
  • Loading branch information
AjeshRPai committed Jan 30, 2024
1 parent 3116c92 commit 849484f
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ class SiteMonitorUtils @Inject constructor(

fun sanitizeSiteUrl(url: String?) = url?.replace(Regex(HTTP_PATTERN), "") ?: ""

fun urlToType(url: String): SiteMonitorType {
return when {
url.contains(PHP_LOGS_PATTERN) -> SiteMonitorType.PHP_LOGS
url.contains(WEB_SERVER_LOGS_PATTERN) -> SiteMonitorType.WEB_SERVER_LOGS
else -> SiteMonitorType.METRICS
}
}

fun trackTabLoaded(siteMonitorType: SiteMonitorType) {
analyticsTrackerWrapper.track(
AnalyticsTracker.Stat.SITE_MONITORING_TAB_SHOWN,
Expand Down

0 comments on commit 849484f

Please sign in to comment.