Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakule committed Jun 10, 2024
1 parent 277f217 commit a782cf9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
9 changes: 0 additions & 9 deletions lib/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,6 @@ const (
TeleportOKEvent = "TeleportOKEvent"
)

const (
// embeddingInitialDelay is the time to wait before the first embedding
// routine is started.
embeddingInitialDelay = 10 * time.Second
// embeddingPeriod is the time between two embedding routines.
// A seventh jitter is applied on the period.
embeddingPeriod = 20 * time.Minute
)

// Connector has all resources process needs to connect to other parts of the
// cluster: client and identity.
type Connector struct {
Expand Down
12 changes: 0 additions & 12 deletions lib/web/userpreferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,18 +201,6 @@ func clusterPreferencesResponse(prefs *userpreferencesv1.ClusterUserPreferences)
return resp
}

// assistUserPreferencesResponse creates a JSON response for the assist user preferences.
func assistUserPreferencesResponse(resp *userpreferencesv1.AssistUserPreferences) AssistUserPreferencesResponse {
jsonResp := AssistUserPreferencesResponse{
PreferredLogins: make([]string, 0, len(resp.PreferredLogins)),
ViewMode: resp.ViewMode,
}

jsonResp.PreferredLogins = append(jsonResp.PreferredLogins, resp.PreferredLogins...)

return jsonResp
}

// unifiedResourcePreferencesResponse creates a JSON response for the assist user preferences.
func unifiedResourcePreferencesResponse(resp *userpreferencesv1.UnifiedResourcePreferences) UnifiedResourcePreferencesResponse {
return UnifiedResourcePreferencesResponse{
Expand Down

0 comments on commit a782cf9

Please sign in to comment.