From dfe5fd8d970f76af9db0a7bf9a1e6f0bc01a291c Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Mon, 12 May 2025 09:44:56 -0500 Subject: wip: refactoring --- internal/session/session.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'internal/session') diff --git a/internal/session/session.go b/internal/session/session.go index 933df8117..e377bfd21 100644 --- a/internal/session/session.go +++ b/internal/session/session.go @@ -12,7 +12,6 @@ import ( "github.com/opencode-ai/opencode/internal/pubsub" ) -// Session represents a conversation session. type Session struct { ID string ParentSessionID string @@ -27,16 +26,12 @@ type Session struct { UpdatedAt int64 } -// --- Events --- - const ( EventSessionCreated pubsub.EventType = "session_created" EventSessionUpdated pubsub.EventType = "session_updated" EventSessionDeleted pubsub.EventType = "session_deleted" ) -// --- Service Definition --- - type Service interface { pubsub.Subscriber[Session] @@ -77,8 +72,6 @@ func GetService() Service { return globalSessionService } -// --- Service Methods --- - func (s *service) Create(ctx context.Context, title string) (Session, error) { s.mu.Lock() defer s.mu.Unlock() -- cgit v1.2.3