Do not use get_param_vocab().size() as link counter. It is too slow.
authorCarlos Lopez <genetita@gmail.com>
Mon, 13 Dec 2010 18:33:15 +0000 (19:33 +0100)
committerCarlos Lopez <genetita@gmail.com>
Sun, 2 Jan 2011 07:19:34 +0000 (08:19 +0100)
synfig-core/src/synfig/valuenode.cpp
synfig-core/src/synfig/valuenode.h

index da9c45c..b423afc 100644 (file)
@@ -669,11 +669,3 @@ LinkableValueNode::get_description(int index, bool show_exported_name)const
        return description;
 }
 
        return description;
 }
 
-/*
-int
-LinkableValueNode::link_count()const
-{
-       Vocab ret(get_param_vocab());
-       return ret.size();
-}
-*/
index d0daf78..61b5d6a 100644 (file)
@@ -337,6 +337,9 @@ public:
        */
        typedef std::map<String,BookEntry> Book;
 
        */
        typedef std::map<String,BookEntry> Book;
 
+       //! The vocabulary of the children
+       /*! \see synfig::Paramdesc
+        */
        typedef ParamVocab Vocab;
 
        static Book& book();
        typedef ParamVocab Vocab;
 
        static Book& book();