Skip to content

Commit

Permalink
chore(context.go): remove unused funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
indaco committed Apr 30, 2024
1 parent 68bb613 commit 199e19f
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,6 @@ func GetConfigFromContextById(ctx context.Context, id string) *Config {
return &Config{}
}

// getOpenFromContextById retrieves the configured tab position from the context.
func getOpenFromContextById(ctx context.Context, id string) Position {
if config, ok := GetConfigMapFromContext(ctx).Get(id); ok {
return config.Position
}
return DefaultConfig().Position
}

// getOpenAsStringFromContextById retrieves the configured tab position from the context.
func getOpenAsStringFromContextById(ctx context.Context, id string) string {
return getOpenFromContextById(ctx, id).String()
}

// getAnimationFromContextById retrieves the configured tab position from the context.
func getAnimationFromContextById(ctx context.Context, id string) Position {
if config, ok := GetConfigMapFromContext(ctx).Get(id); ok {
return config.Position
}
return DefaultConfig().Position
}

// getAnimationAsStringFromContextById retrieves the configured tab position from the context.
func getAnimationAsStringFromContextById(ctx context.Context, id string) string {
return getAnimationFromContextById(ctx, id).String()
}

// getPositionFromContextById retrieves the configured tab position from the context.
func getPositionFromContextById(ctx context.Context, id string) Position {
if config, ok := GetConfigMapFromContext(ctx).Get(id); ok {
Expand Down

0 comments on commit 199e19f

Please sign in to comment.