Use LinkableValueNode members functions when possible in the derived valuenodes.
[synfig.git] / synfig-core / src / synfig / valuenode_realstring.cpp
index cb0f4e6..aa4d834 100644 (file)
@@ -155,53 +155,6 @@ ValueNode_RealString::get_link_vfunc(int i)const
        return 0;
 }
 
-int
-ValueNode_RealString::link_count()const
-{
-       return 4;
-}
-
-String
-ValueNode_RealString::link_name(int i)const
-{
-       assert(i>=0 && i<link_count());
-
-       switch(i)
-       {
-               case 0: return "real";
-               case 1: return "width";
-               case 2: return "precision";
-               case 3: return "zero_pad";
-       }
-       return String();
-}
-
-String
-ValueNode_RealString::link_local_name(int i)const
-{
-       assert(i>=0 && i<link_count());
-
-       switch(i)
-       {
-               case 0: return _("Real");
-               case 1: return _("Width");
-               case 2: return _("Precision");
-               case 3: return _("Zero Padded");
-       }
-       return String();
-}
-
-int
-ValueNode_RealString::get_link_index_from_name(const String &name)const
-{
-       if (name=="real") return 0;
-       if (name=="width") return 1;
-       if (name=="precision") return 2;
-       if (name=="zero_pad") return 3;
-
-       throw Exception::BadLinkName(name);
-}
-
 bool
 ValueNode_RealString::check_type(ValueBase::Type type)
 {