From 91ed98e59361dcbfbfd65411e6ec4bea1698bda5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 1 Apr 2021 10:58:52 +0100 Subject: [PATCH] Revert "cmd updates: Improve arguments to accumulate" This is no longer needed, then. This reverts commit b2ea5402ca1d60dc2d2249b021e7134ae2acd935. --- daemon/cmdlistener.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 { -- 2.30.2