Remove unused OverrideVisible flags

They were forgotten to be removed in 5a4e8e1896
This commit is contained in:
Vantha
2026-04-02 12:30:27 +02:00
committed by Vantha
parent e2eb02fa59
commit 2de7bfcce5
3 changed files with 3 additions and 28 deletions
@@ -1,4 +1,4 @@
/* Copyright (C) 2025 Wildfire Games.
/* Copyright (C) 2026 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -54,19 +54,7 @@ public:
*/
virtual void AddSprite(const VfsPath& textureName, const CFixedVector2D& corner0, const CFixedVector2D& corner1, const CFixedVector3D& offset, const std::string& color = "255 255 255 255") = 0;
/**
* Enables or disables rendering of all sprites.
* @param visible Whether the selectable should be visible.
*/
static void SetOverrideVisibility(bool visible)
{
ICmpOverlayRenderer::m_OverrideVisible = visible;
}
DECLARE_INTERFACE_TYPE(OverlayRenderer)
protected:
static bool m_OverrideVisible;
};
#endif // INCLUDED_ICMPOVERLAYRENDERER
@@ -1,4 +1,4 @@
/* Copyright (C) 2021 Wildfire Games.
/* Copyright (C) 2026 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -29,4 +29,3 @@ DEFINE_INTERFACE_METHOD("UpdateColor", ICmpSelectable, UpdateColor)
END_INTERFACE_WRAPPER(Selectable)
bool ICmpSelectable::ms_EnableDebugOverlays = false;
bool ICmpSelectable::m_OverrideVisible = true;
+1 -13
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2025 Wildfire Games.
/* Copyright (C) 2026 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -47,15 +47,6 @@ public:
*/
virtual void SetVisibility(bool visible) = 0;
/**
* Enables or disables rendering of all entities selectable.
* @param visible Whether the selectable should be visible.
*/
static void SetOverrideVisibility(bool visible)
{
ICmpSelectable::m_OverrideVisible = visible;
}
/**
* Updates the selection color to match the current owner.
*/
@@ -72,9 +63,6 @@ public:
// and methods, where we can keep settings like these. Note that any such data store would need to be per-component-manager
// and not entirely global, to support multiple simulation instances.
static bool ms_EnableDebugOverlays; // ms for member static
protected:
static bool m_OverrideVisible;
};
#endif // INCLUDED_ICMPSELECTABLE