Skip to content

Commit f31588e

Browse files
committed
fixup! remove unused methods
1 parent 2b1a383 commit f31588e

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

coderd/database/databasefake/databasefake.go

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -325,38 +325,6 @@ func (q *fakeQuerier) GetWorkspaceByOwnerIDAndName(_ context.Context, arg databa
325325
return database.Workspace{}, sql.ErrNoRows
326326
}
327327

328-
func (q *fakeQuerier) GetWorkspaces(_ context.Context) ([]database.Workspace, error) {
329-
q.mutex.RLock()
330-
defer q.mutex.RUnlock()
331-
workspaces := make([]database.Workspace, len(q.workspaces))
332-
copy(workspaces, q.workspaces)
333-
return workspaces, nil
334-
}
335-
336-
func (q *fakeQuerier) GetWorkspacesAutostart(_ context.Context) ([]database.Workspace, error) {
337-
q.mutex.RLock()
338-
defer q.mutex.RUnlock()
339-
workspaces := make([]database.Workspace, 0)
340-
for _, ws := range q.workspaces {
341-
if ws.AutostartSchedule.String != "" {
342-
workspaces = append(workspaces, ws)
343-
}
344-
}
345-
return workspaces, nil
346-
}
347-
348-
func (q *fakeQuerier) GetWorkspacesAutostop(_ context.Context) ([]database.Workspace, error) {
349-
q.mutex.RLock()
350-
defer q.mutex.RUnlock()
351-
workspaces := make([]database.Workspace, 0)
352-
for _, ws := range q.workspaces {
353-
if ws.AutostopSchedule.String != "" {
354-
workspaces = append(workspaces, ws)
355-
}
356-
}
357-
return workspaces, nil
358-
}
359-
360328
func (q *fakeQuerier) GetWorkspacesAutostartAutostop(_ context.Context) ([]database.Workspace, error) {
361329
q.mutex.RLock()
362330
defer q.mutex.RUnlock()

0 commit comments

Comments
 (0)