Remove the unused GetSessionChannelIDs from the db package (closes #254)
check / check (push) Waiting to run

Neither the server nor any test calls this method.

Model: opus-5-5
This commit is contained in:
2026-11-03 11:05:54 +00:00
parent 8afd873813
commit 336fd43827
-17
View File
@@ -1056,23 +1056,6 @@ func (database *Database) GetChannelMemberIDs(
return scanInt64s(rows)
}
// GetSessionChannelIDs returns channel IDs for a session.
func (database *Database) GetSessionChannelIDs(
ctx context.Context,
sessionID int64,
) ([]int64, error) {
rows, err := database.conn.QueryContext(ctx,
`SELECT channel_id FROM channel_members
WHERE session_id = ?`, sessionID)
if err != nil {
return nil, fmt.Errorf(
"get session channel ids: %w", err,
)
}
return scanInt64s(rows)
}
// InsertMessage stores a message and returns its DB ID.
// toSessionID is the session a DM or INVITE is sent to and
// toChannelID the channel a channel message is sent to;