From c92fcf821ee6d25c9805eb3ebb91b3b62e6ebf80 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sat, 10 Oct 2020 03:15:45 -0400
Subject: [PATCH] finish cleaning out old broad refresh style

---
 src/interaction/siUtilities.js | 12 ++----------
 src/interaction/siWork.js      |  4 ++--
 2 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/src/interaction/siUtilities.js b/src/interaction/siUtilities.js
index e7f9a4d7007..9741d200452 100644
--- a/src/interaction/siUtilities.js
+++ b/src/interaction/siUtilities.js
@@ -56,7 +56,7 @@ App.UI.SlaveInteract.appendLabeledChoiceRow = function(parent, label, array, sla
  * @param {App.Entity.SlaveState} slave
  * @param {string} [category] - should be in the form of slave.category, the thing we want to update.
  * @param {boolean} [accessCheck=false]
- * @param {Function} [refresh]
+ * @param {Function} refresh
  * @returns {HTMLSpanElement}
  */
 App.UI.SlaveInteract.generateRows = function(array, slave, category, accessCheck = false, refresh) {
@@ -117,14 +117,6 @@ App.UI.SlaveInteract.generateRows = function(array, slave, category, accessCheck
 		if (arrayOption.update) {
 			Object.assign(V, arrayOption.update);
 		}
-		if (typeof refresh === "function") {
-			refresh();
-		} else {
-			App.UI.SlaveInteract.refreshAll(slave);
-		}
+		refresh();
 	}
 };
-
-App.UI.SlaveInteract.refreshAll = function(slave) {
-	App.UI.SlaveInteract.custom(slave);
-};
diff --git a/src/interaction/siWork.js b/src/interaction/siWork.js
index d1de52c34a1..7beac876dd4 100644
--- a/src/interaction/siWork.js
+++ b/src/interaction/siWork.js
@@ -670,13 +670,13 @@ App.UI.SlaveInteract.work = function(slave) {
 						let frag = App.UI.DOM.renderPassage(sexOption.scene);
 
 						// Refresh (clears scene display)
-						App.UI.SlaveInteract.refreshAll(slave);
+						refresh();
 
 						// Display scene render results
 						$("#mini-scene").append(frag);
 					} else {
 						// just refresh
-						App.UI.SlaveInteract.refreshAll(slave);
+						refresh();
 					}
 				}
 			}
-- 
GitLab