From 77b97d3af339f06eb2b43b1372361e4e6d52a127 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 24 Apr 2004 12:22:29 +0000 Subject: Removed SString::attach as rolw now perfromed by constructor from SBuffer. --- include/SString.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'include') diff --git a/include/SString.h b/include/SString.h index afe1a902c..5c2a93d33 100644 --- a/include/SString.h +++ b/include/SString.h @@ -206,18 +206,6 @@ public: const char *c_str() const { return s ? s : ""; } - /** Attach to a string allocated by means of StringAlloc(len). */ - SString &attach(char *s_, lenpos_t sLen_ = measure_length, lenpos_t sSize_ = measure_length) { - delete []s; - s = s_; - if (!s) { - sLen = sSize = 0; - } else { - sLen = (sLen_ == measure_length ? strlen(s) : sLen_); - sSize = (sSize_ == measure_length ? sLen + 1 : sSize_); - } - return *this; - } /** Give ownership of buffer to caller which must use delete[] to free buffer. */ char *detach() { char *sRet = s; -- cgit v1.2.3