diff --git a/context.go b/context.go index 934c2ad..fb989d1 100644 --- a/context.go +++ b/context.go @@ -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 {