From ff558037e2c6485396c4d594d887efbb2f217d0a Mon Sep 17 00:00:00 2001 From: Antoine Fontaine Date: Sun, 28 Mar 2021 16:15:09 +0200 Subject: [PATCH] various: drop dead code --- include/ishaders.h | 1 - libs/entitylib.h | 12 ------------ plugins/shaders/shaders.cpp | 6 ------ 3 files changed, 19 deletions(-) diff --git a/include/ishaders.h b/include/ishaders.h index e1ce6261..b580e2c4 100644 --- a/include/ishaders.h +++ b/include/ishaders.h @@ -127,7 +127,6 @@ virtual ECull getCull() = 0; virtual const char* getShaderFileName() const = 0; virtual const ShaderLayer* firstLayer() const = 0; -virtual void forEachLayer( const ShaderLayerCallback& layer ) const = 0; virtual qtexture_t* lightFalloffImage() const = 0; }; diff --git a/libs/entitylib.h b/libs/entitylib.h index 87ac4fe5..326f2c7c 100644 --- a/libs/entitylib.h +++ b/libs/entitylib.h @@ -419,18 +419,6 @@ private: } m_observerMutex = false; } - void forEachKeyValue_notifyInsert(){ - for ( KeyValues::const_iterator i = m_keyValues.begin(); i != m_keyValues.end(); ++i ) - { - notifyInsert( ( *i ).first.c_str(), *( *i ).second ); - } - } - void forEachKeyValue_notifyErase(){ - for ( KeyValues::const_iterator i = m_keyValues.begin(); i != m_keyValues.end(); ++i ) - { - notifyErase( ( *i ).first.c_str(), *( *i ).second ); - } - } void insert( const char* key, const KeyValuePtr& keyValue ){ KeyValues::iterator i = m_keyValues.insert( KeyValues::value_type( key, keyValue ) ); diff --git a/plugins/shaders/shaders.cpp b/plugins/shaders/shaders.cpp index a78a6602..58c52325 100644 --- a/plugins/shaders/shaders.cpp +++ b/plugins/shaders/shaders.cpp @@ -1112,12 +1112,6 @@ const ShaderLayer* firstLayer() const { } return &m_layers.front(); } -void forEachLayer( const ShaderLayerCallback& callback ) const { - for ( MapLayers::const_iterator i = m_layers.begin(); i != m_layers.end(); ++i ) - { - callback( *i ); - } -} qtexture_t* lightFalloffImage() const { if ( !string_empty( m_template.m_lightFalloffImage.c_str() ) ) { -- 2.39.2