Skip to content

Commit

Permalink
- removed NoVirtualRefCountedBase class
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Oct 18, 2021
1 parent 94b77de commit e0cdb1e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/common/utility/refcounted.h
Expand Up @@ -2,16 +2,7 @@

// Simple lightweight reference counting pointer alternative for std::shared_ptr which stores the reference counter in the handled object itself.

// Base classes for handled objects
class NoVirtualRefCountedBase
{
public:
void IncRef() { refCount++; }
void DecRef() { if (--refCount <= 0) delete this; }
private:
int refCount = 0;
};

// Base class for handled objects
class RefCountedBase
{
public:
Expand Down

0 comments on commit e0cdb1e

Please sign in to comment.