From e5acc73fcf5fee7532c9be4fd35c3e4dc14ec9e9 Mon Sep 17 00:00:00 2001 From: wraitii Date: Wed, 14 Jun 2023 07:28:37 +0000 Subject: [PATCH] Remove useless line from 507f44f7f9 This is unused and makes the function twice as slow as it needs to be. Differential Revision: https://code.wildfiregames.com/D5015 This was SVN commit r27697. --- 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 d41bdad2b2..6760d0a6f0 100644 --- a/source/scriptinterface/ScriptInterface.h +++ b/source/scriptinterface/ScriptInterface.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2022 Wildfire Games. +/* Copyright (C) 2023 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -117,7 +117,6 @@ public: static T* ObjectFromCBData(const ScriptRequest& rq) { static_assert(!std::is_same_v); - ScriptInterface::CmptPrivate::GetCBData(rq.cx); return static_cast(ObjectFromCBData(rq)); }