From: Ian Jackson Date: Thu, 1 Apr 2021 09:58:52 +0000 (+0100) Subject: Revert "cmd updates: Improve arguments to accumulate" X-Git-Tag: otter-0.5.0~345 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=91ed98e59361dcbfbfd65411e6ec4bea1698bda5;p=otter.git Revert "cmd updates: Improve arguments to accumulate" This is no longer needed, then. This reverts commit b2ea5402ca1d60dc2d2249b021e7134ae2acd935. --- diff --git a/daemon/cmdlistener.rs b/daemon/cmdlistener.rs index b7dfdd67..bcffb751 100644 --- a/daemon/cmdlistener.rs +++ b/daemon/cmdlistener.rs @@ -873,7 +873,7 @@ fn execute_for_game<'cs, 'igr, 'ig: 'igr>( let uh = mk_uh(); (uh, auth_y) }); - uh.accumulate(ig, updates, &who)?; + uh.accumulate(ig, updates)?; responses.push(resp); if let Some(unprepared) = unprepared { let uh = mem::replace(uh, mk_uh()); @@ -944,9 +944,8 @@ impl UpdateHandler { } #[throws(SVGProcessingError)] - fn accumulate(&mut self, g: &mut InstanceGuard, - updates: ExecuteGameChangeUpdates, - who: &Html) { + fn accumulate(&mut self, g: &mut Instance, + updates: ExecuteGameChangeUpdates) { let mut raw = updates.raw.unwrap_or_default(); use UpdateHandler::*; match self {