mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-19 21:46:54 +02:00
dead code removal
This commit is contained in:
parent
6262374205
commit
77e59818a3
2 changed files with 1 additions and 15 deletions
|
@ -706,13 +706,6 @@ public:
|
|||
template<typename T>
|
||||
ZT_ALWAYS_INLINE const T &as(const unsigned int i = 0) const noexcept { return *reinterpret_cast<const T *>(unsafeData + i); }
|
||||
|
||||
ZT_ALWAYS_INLINE bool operator==(const Buf &b2) const noexcept { return (memcmp(unsafeData,b2.unsafeData,ZT_BUF_MEM_SIZE) == 0); }
|
||||
ZT_ALWAYS_INLINE bool operator!=(const Buf &b2) const noexcept { return (memcmp(unsafeData,b2.unsafeData,ZT_BUF_MEM_SIZE) != 0); }
|
||||
ZT_ALWAYS_INLINE bool operator<(const Buf &b2) const noexcept { return (memcmp(unsafeData,b2.unsafeData,ZT_BUF_MEM_SIZE) < 0); }
|
||||
ZT_ALWAYS_INLINE bool operator<=(const Buf &b2) const noexcept { return (memcmp(unsafeData,b2.unsafeData,ZT_BUF_MEM_SIZE) <= 0); }
|
||||
ZT_ALWAYS_INLINE bool operator>(const Buf &b2) const noexcept { return (memcmp(unsafeData,b2.unsafeData,ZT_BUF_MEM_SIZE) > 0); }
|
||||
ZT_ALWAYS_INLINE bool operator>=(const Buf &b2) const noexcept { return (memcmp(unsafeData,b2.unsafeData,ZT_BUF_MEM_SIZE) >= 0); }
|
||||
|
||||
/**
|
||||
* Raw data held in buffer
|
||||
*
|
||||
|
|
|
@ -35,15 +35,8 @@ class Fingerprint : public TriviallyCopyable
|
|||
{
|
||||
public:
|
||||
ZT_ALWAYS_INLINE Fingerprint() noexcept {}
|
||||
explicit ZT_ALWAYS_INLINE Fingerprint(const void *h384) noexcept { memcpy(_h,h384,48); }
|
||||
|
||||
ZT_ALWAYS_INLINE void set(const void *h384) noexcept { memcpy(_h,h384,48); }
|
||||
|
||||
ZT_ALWAYS_INLINE void zero() noexcept
|
||||
{
|
||||
for(unsigned int i=0;i<(384 / (sizeof(unsigned long) * 8));++i)
|
||||
_h[i] = 0;
|
||||
}
|
||||
ZT_ALWAYS_INLINE void zero() noexcept { memoryZero(this); }
|
||||
|
||||
ZT_ALWAYS_INLINE uint8_t *data() noexcept { return reinterpret_cast<uint8_t *>(_h); }
|
||||
ZT_ALWAYS_INLINE const uint8_t *data() const noexcept { return reinterpret_cast<const uint8_t *>(_h); }
|
||||
|
|
Loading…
Add table
Reference in a new issue