src/node/packetbb.cc
changeset 5505 c0ac392289c3
parent 5263 a0283279fddd
child 5885 d6ee673adda4
     1.1 --- a/src/node/packetbb.cc	Thu Sep 24 18:05:36 2009 -0400
     1.2 +++ b/src/node/packetbb.cc	Thu Nov 12 13:01:01 2009 +0100
     1.3 @@ -497,7 +497,6 @@
     1.4  
     1.5  PbbPacket::PbbPacket (void)
     1.6  {
     1.7 -  m_refCount = 1;
     1.8    m_version = VERSION;
     1.9    m_hasseqnum = false;
    1.10  }
    1.11 @@ -746,21 +745,6 @@
    1.12    m_messageList.clear ();
    1.13  }
    1.14  
    1.15 -void
    1.16 -PbbPacket::Ref (void) const
    1.17 -{
    1.18 -  m_refCount++;
    1.19 -}
    1.20 -
    1.21 -void
    1.22 -PbbPacket::Unref (void) const
    1.23 -{
    1.24 -  m_refCount--;
    1.25 -  if (m_refCount == 0)
    1.26 -    {
    1.27 -      delete this;
    1.28 -    }
    1.29 -}
    1.30  
    1.31  TypeId
    1.32  PbbPacket::GetTypeId (void)
    1.33 @@ -947,7 +931,6 @@
    1.34  
    1.35  PbbMessage::PbbMessage ()
    1.36  {
    1.37 -  m_refCount = 1;
    1.38    /* Default to IPv4 */
    1.39    m_addrSize = IPV4;
    1.40    m_hasOriginatorAddress = false;
    1.41 @@ -1274,22 +1257,6 @@
    1.42    return m_addressBlockList.clear();
    1.43  }
    1.44  
    1.45 -void
    1.46 -PbbMessage::Ref (void) const
    1.47 -{
    1.48 -  m_refCount++;
    1.49 -}
    1.50 -
    1.51 -void
    1.52 -PbbMessage::Unref (void) const
    1.53 -{
    1.54 -  m_refCount--;
    1.55 -  if (m_refCount == 0)
    1.56 -    {
    1.57 -      delete this;
    1.58 -    }
    1.59 -}
    1.60 -
    1.61  uint32_t
    1.62  PbbMessage::GetSerializedSize (void) const
    1.63  {
    1.64 @@ -1699,13 +1666,10 @@
    1.65  /* End PbbMessageIpv6 Class */
    1.66  
    1.67  PbbAddressBlock::PbbAddressBlock ()
    1.68 -{
    1.69 -  m_refCount = 1;
    1.70 -}
    1.71 +{}
    1.72  
    1.73  PbbAddressBlock::~PbbAddressBlock ()
    1.74 -{
    1.75 -}
    1.76 +{}
    1.77  
    1.78  /* Manipulating the address block */
    1.79  
    1.80 @@ -2002,23 +1966,6 @@
    1.81  {
    1.82    m_addressTlvList.Clear();
    1.83  }
    1.84 -
    1.85 -void
    1.86 -PbbAddressBlock::Ref (void) const
    1.87 -{
    1.88 -  m_refCount++;
    1.89 -}
    1.90 -
    1.91 -void
    1.92 -PbbAddressBlock::Unref (void) const
    1.93 -{
    1.94 -  m_refCount--;
    1.95 -  if (m_refCount == 0)
    1.96 -    {
    1.97 -      delete this;
    1.98 -    }
    1.99 -}
   1.100 -
   1.101  uint32_t
   1.102  PbbAddressBlock::GetSerializedSize (void) const
   1.103  {
   1.104 @@ -2448,7 +2395,6 @@
   1.105  
   1.106  PbbTlv::PbbTlv (void)
   1.107  {
   1.108 -  m_refCount = 1;
   1.109    m_hasTypeExt = false;
   1.110    m_hasIndexStart = false;
   1.111    m_hasIndexStop = false;
   1.112 @@ -2573,22 +2519,6 @@
   1.113    return m_hasValue;
   1.114  }
   1.115  
   1.116 -void
   1.117 -PbbTlv::Ref (void) const
   1.118 -{
   1.119 -  m_refCount++;
   1.120 -}
   1.121 -
   1.122 -void
   1.123 -PbbTlv::Unref (void) const
   1.124 -{
   1.125 -  m_refCount--;
   1.126 -  if (m_refCount == 0)
   1.127 -    {
   1.128 -      delete this;
   1.129 -    }
   1.130 -}
   1.131 -
   1.132  uint32_t
   1.133  PbbTlv::GetSerializedSize (void) const
   1.134  {