From f368e1a69e397fa2f56676108d412fbf58946f90 Mon Sep 17 00:00:00 2001 From: wraitii Date: Fri, 14 May 2021 09:27:12 +0000 Subject: [PATCH] Remove unused m_rng member from ScriptInterface. The one in ScriptInterface_Impl is actually used. Introduced in e9e05f4efc and from what I can tell never actually used. Differential Revision: https://code.wildfiregames.com/D3960 This was SVN commit r25433. --- source/scriptinterface/ScriptInterface.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/scriptinterface/ScriptInterface.h b/source/scriptinterface/ScriptInterface.h index 843536f0f9..a538ac3b07 100644 --- a/source/scriptinterface/ScriptInterface.h +++ b/source/scriptinterface/ScriptInterface.h @@ -111,7 +111,7 @@ public: bool LoadGlobalScripts(); /** - * Replace the default JS random number geenrator with a seeded, network-sync'd one. + * Replace the default JS random number generator with a seeded, network-synced one. */ bool ReplaceNondeterministicRNG(boost::random::rand48& rng); @@ -258,7 +258,6 @@ private: // members have to be called before the custom destructor of ScriptInterface_impl. std::unique_ptr m; - boost::random::rand48* m_rng; std::map m_CustomObjectTypes; };