From: Antoine Fontaine Date: Sun, 28 Mar 2021 14:15:09 +0000 (+0200) Subject: various: drop dead code X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ff558037e2c6485396c4d594d887efbb2f217d0a;p=xonotic%2Fnetradiant.git various: drop dead code --- 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() ) ) {