From 199e19f7716612c62cca0df8555e9bcd4bf65ba0 Mon Sep 17 00:00:00 2001 From: indaco Date: Tue, 30 Apr 2024 10:40:30 +0200 Subject: [PATCH] chore(context.go): remove unused funcs --- context.go | 26 -------------------------- 1 file changed, 26 deletions(-) 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 {