summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Sander <oliver.sander@tu-dresden.de>2024-04-04 11:54:22 +0200
committerOliver Sander <oliver.sander@tu-dresden.de>2024-04-04 11:54:22 +0200
commit088d83e45c53afeb7124f741e9539a28c7240686 (patch)
tree6601c7212bcf9f4998386f0e61e7af5ae387ff93
parentfbb64544e5ea25ac9b1bd25b48043d074efe9cd9 (diff)
Remove method GooString::clear
Use std::string::clear instead. The only difference between the two is that GooString::clear returns the empty string, whereas std::string::clear does not. But apparently this feature of GooString::clear was not used anywhere.
-rw-r--r--goo/GooString.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/goo/GooString.h b/goo/GooString.h
index 7ad9a524..750ce935 100644
--- a/goo/GooString.h
+++ b/goo/GooString.h
@@ -156,11 +156,7 @@ public:
void setChar(int i, char c) { (*this)[i] = c; }
// Clear string to zero length.
- GooString *clear()
- {
- static_cast<std::string &>(*this).clear();
- return this;
- }
+ using std::string::clear;
// Append a character or string.
GooString *append(char c)