Skip to content

Commit e5ec365

Browse files
committed
Remove unused code
1 parent d1c6319 commit e5ec365

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

coderd/database/databasefake/databasefake.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -368,26 +368,6 @@ func (q *fakeQuerier) GetWorkspacesWithFilter(_ context.Context, arg database.Ge
368368
return workspaces, nil
369369
}
370370

371-
func (q *fakeQuerier) GetWorkspacesByTemplateID(_ context.Context, arg database.GetWorkspacesByTemplateIDParams) ([]database.Workspace, error) {
372-
q.mutex.RLock()
373-
defer q.mutex.RUnlock()
374-
375-
workspaces := make([]database.Workspace, 0)
376-
for _, workspace := range q.workspaces {
377-
if workspace.TemplateID.String() != arg.TemplateID.String() {
378-
continue
379-
}
380-
if workspace.Deleted != arg.Deleted {
381-
continue
382-
}
383-
workspaces = append(workspaces, workspace)
384-
}
385-
if len(workspaces) == 0 {
386-
return nil, sql.ErrNoRows
387-
}
388-
return workspaces, nil
389-
}
390-
391371
func (q *fakeQuerier) GetWorkspaceByID(_ context.Context, id uuid.UUID) (database.Workspace, error) {
392372
q.mutex.RLock()
393373
defer q.mutex.RUnlock()

0 commit comments

Comments
 (0)