Explorar o código

core: remove unnecessary assignment operator overloading

Daniele Bartolini %!s(int64=6) %!d(string=hai) anos
pai
achega
eed3e484d8
Modificáronse 1 ficheiros con 0 adicións e 7 borrados
  1. 0 7
      src/core/strings/dynamic_string.h

+ 0 - 7
src/core/strings/dynamic_string.h

@@ -27,7 +27,6 @@ struct DynamicString
 
 	DynamicString(Allocator& a);
 
-	DynamicString& operator=(const DynamicString& ds);
 	DynamicString& operator=(const char* str);
 	DynamicString& operator=(const char c);
 	DynamicString& operator=(const FixedString& fs);
@@ -115,12 +114,6 @@ inline DynamicString& operator+=(DynamicString& a, const FixedString& fs)
 	return a;
 }
 
-inline DynamicString& DynamicString::operator=(const DynamicString& ds)
-{
-	_data = ds._data;
-	return *this;
-}
-
 inline DynamicString& DynamicString::operator=(const char* str)
 {
 	CE_ENSURE(NULL != str);