src/core/attribute.cc
changeset 2502 50d0da37f02f
parent 2438 e2ac9f9aeeb9
child 2581 31d4960dc31b
--- a/src/core/attribute.cc	Wed Feb 27 20:48:43 2008 +0100
+++ b/src/core/attribute.cc	Wed Feb 27 21:41:34 2008 +0100
@@ -113,14 +113,6 @@
   return m_value->DeserializeFromString (value, checker);
 }
 
-Attribute::Attribute (const char *value)
-  : m_value (new StringValue (value))
-{}
-Attribute::Attribute (std::string value)
-  : m_value (new StringValue (value))
-{}
-
-
 AttributeAccessor::AttributeAccessor ()
   : m_count (1)
 {}
@@ -161,53 +153,6 @@
 AttributeChecker::~AttributeChecker ()
 {}
 
-StringValue::StringValue (const char *value)
-  : m_value (value)
-{}
-StringValue::StringValue (std::string value)
-  : m_value (value)
-{}
-void 
-StringValue::Set (std::string value)
-{
-  m_value = value;
-}
-std::string 
-StringValue::Get (void) const
-{
-  return m_value;
-}
-Attribute 
-StringValue::Copy (void) const
-{
-  return Attribute::Create<StringValue> (*this);
-}
-std::string 
-StringValue::SerializeToString (Ptr<const AttributeChecker> checker) const
-{
-  return m_value;
-}
-bool 
-StringValue::DeserializeFromString (std::string value, Ptr<const AttributeChecker> checker)
-{
-  m_value = value;
-  return true;
-}
-StringValue::StringValue (Attribute value)
-{
-  const StringValue *v = value.DynCast<const StringValue *> ();
-  if (v == 0)
-    {
-      NS_FATAL_ERROR ("Expected value of type String.");
-    }
-  m_value = v->Get ();
-}
-StringValue::operator Attribute () const
-{
-  return Attribute::Create<StringValue> (*this);
-}
-
-
 std::string 
 PtrValueBase::SerializeToString (Ptr<const AttributeChecker> checker) const
 {