diff options
Diffstat (limited to 'FoundationEx/Text.cpp')
-rw-r--r-- | FoundationEx/Text.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/FoundationEx/Text.cpp b/FoundationEx/Text.cpp index e73149a..972db7f 100644 --- a/FoundationEx/Text.cpp +++ b/FoundationEx/Text.cpp @@ -33,8 +33,6 @@ TextRep::TextRep() // +-------------------------------------------------------------------+ -ThreadSync TextRep::sync; - TextRep::TextRep(const char* s) : ref(1), length(0), sensitive(true) @@ -101,17 +99,13 @@ TextRep::~TextRep() void TextRep::addref() { - sync.acquire(); ref++; - sync.release(); } long TextRep::deref() { - sync.acquire(); long r = --ref; - sync.release(); return r; } |