From 1fa460ffee65518b7fce0053616798fb0070deba Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 22 Nov 2008 15:30:25 +0000 Subject: [PATCH] Remove the declaration and definition of ValueNode_BLine::clone() since the parent class' version is now fine. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2231 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/valuenode_bline.cpp | 29 ------------------------ synfig-core/trunk/src/synfig/valuenode_bline.h | 2 -- 2 files changed, 31 deletions(-) diff --git a/synfig-core/trunk/src/synfig/valuenode_bline.cpp b/synfig-core/trunk/src/synfig/valuenode_bline.cpp index 4f0b923..55b19bb 100644 --- a/synfig-core/trunk/src/synfig/valuenode_bline.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_bline.cpp @@ -814,35 +814,6 @@ ValueNode_BLine::link_local_name(int i)const return etl::strprintf(_("Vertex %03d"),i+1); } -ValueNode* -ValueNode_BLine::clone(const GUID& deriv_guid)const -{ - { ValueNode* x(find_value_node(get_guid()^deriv_guid).get()); if(x)return x; } - - ValueNode_BLine* ret=new ValueNode_BLine(); - ret->set_guid(get_guid()^deriv_guid); - - std::vector::const_iterator iter; - - for(iter=list.begin();iter!=list.end();++iter) - { - if(iter->value_node->is_exported()) - ret->add(*iter); - else - { - ListEntry list_entry(*iter); - //list_entry.value_node=find_value_node(iter->value_node->get_guid()^deriv_guid).get(); - //if(!list_entry.value_node) - list_entry.value_node=iter->value_node->clone(deriv_guid); - ret->add(list_entry); - //ret->list.back().value_node=iter->value_node.clone(); - } - } - ret->set_loop(get_loop()); - - return ret; -} - String ValueNode_BLine::get_name()const { diff --git a/synfig-core/trunk/src/synfig/valuenode_bline.h b/synfig-core/trunk/src/synfig/valuenode_bline.h index 915d262..4599d26 100644 --- a/synfig-core/trunk/src/synfig/valuenode_bline.h +++ b/synfig-core/trunk/src/synfig/valuenode_bline.h @@ -79,8 +79,6 @@ public: virtual String get_name()const; virtual String get_local_name()const; - virtual ValueNode* clone(const GUID& deriv_guid=GUID())const; - virtual ListEntry create_list_entry(int index, Time time=0, Real origin=0.5); protected: -- 2.7.4