Skip to content

Commit

Permalink
chore(registry): removes unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
MStreet3 committed Nov 26, 2024
1 parent ef8942f commit 0ce800e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/services/workflows/syncer/engine_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ func (r *engineRegistry) IsRunning(id string) bool {
return engine.Ready() == nil
}

// Exists checks if an engine exists in the registry.
func (r *engineRegistry) Exists(id string) bool {
r.mu.RLock()
defer r.mu.RUnlock()
_, found := r.engines[id]
return found
}

// Pop removes an engine from the registry and returns the engine if found.
func (r *engineRegistry) Pop(id string) (*workflows.Engine, error) {
r.mu.Lock()
Expand Down

0 comments on commit 0ce800e

Please sign in to comment.