Skip to content

Commit 3a03b9d

Browse files
committed
fixup! remove unused methods
1 parent 116d83e commit 3a03b9d

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
@@ -328,38 +328,6 @@ func (q *fakeQuerier) GetWorkspaceByOwnerIDAndName(_ context.Context, arg databa
328328
return database.Workspace{}, sql.ErrNoRows
329329
}
330330

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

0 commit comments

Comments
 (0)