From 9b5615647dc5053769af4fcf18b5805ffa89c50b Mon Sep 17 00:00:00 2001
From: Andrey Kleshchev <andreykproductengine@lindenlab.com>
Date: Fri, 19 Apr 2024 01:03:27 +0300
Subject: viewer#1081 removed a 'not finalized' part of 2K benefits

This part isn't planned at the moment, at least not this way, remove to
not cause issues once server side changes behavior
---
 indra/newview/llagentbenefits.cpp | 13 -------------
 1 file changed, 13 deletions(-)

(limited to 'indra')

diff --git a/indra/newview/llagentbenefits.cpp b/indra/newview/llagentbenefits.cpp
index 29b0a4612f..0717d92ea7 100644
--- a/indra/newview/llagentbenefits.cpp
+++ b/indra/newview/llagentbenefits.cpp
@@ -201,19 +201,6 @@ S32 LLAgentBenefits::get2KTextureUploadCost(S32 area) const
     {
         return m_texture_upload_cost;
     }
-    const S32 TEXTURE_SEGMENTS = 1024;
-    if (m_2k_texture_upload_cost.size() == TEXTURE_SEGMENTS)
-    {
-        S32 index = (S32)llceil(sqrt((F32)area));
-        // 1..1024 pixels uses m_texture_upload_cost
-        // 1025..2048 uses m_2k_texture_upload_cost
-        // Translate 1025..2048 to 0..1023 of the
-        // cost array
-        const S32 PIXELS_TO_2K_ARRAY_TRANLATE = 1025;
-        index -= PIXELS_TO_2K_ARRAY_TRANLATE;
-        index = llclamp(index, 0, TEXTURE_SEGMENTS - 1);
-        return m_2k_texture_upload_cost[index];
-    }
     return m_2k_texture_upload_cost[0];
 }
 
-- 
cgit v1.2.3