chore: drop stale dead_code allows + the unused operator_questions get method

This commit is contained in:
damocles 2026-06-06 11:06:30 +02:00 committed by mara
commit 2a840c14a2
2 changed files with 0 additions and 20 deletions

View file

@ -238,19 +238,6 @@ impl OperatorQuestions {
Ok((question, asker, target))
}
#[allow(dead_code)]
pub fn get(&self, id: i64) -> Result<Option<OpQuestion>> {
let conn = self.conn.lock().unwrap();
conn.query_row(
"SELECT id, asker, question, options_json, multi, asked_at, answered_at, answer, deadline_at, target
FROM operator_questions WHERE id = ?1",
params![id],
row_to_question,
)
.optional()
.map_err(Into::into)
}
/// Every pending question, operator-targeted or peer-to-peer.
/// Drives the dashboard's questions pane now that peer threads
/// are surfaced for visibility + operator override-answer.