diff --git a/simgear/misc/sg_path.cxx b/simgear/misc/sg_path.cxx index 05af794f..31f84bc7 100644 --- a/simgear/misc/sg_path.cxx +++ b/simgear/misc/sg_path.cxx @@ -240,44 +240,6 @@ SGPath SGPath::fromUtf8(const std::string& bytes, PermissionChecker p) return SGPath(bytes, p); } - -SGPath::SGPath(const SGPath& p) : - path(p.path), - _permission_checker(p._permission_checker), - _cached(p._cached), - _rwCached(p._rwCached), - _cacheEnabled(p._cacheEnabled), - _canRead(p._canRead), - _canWrite(p._canWrite), - _exists(p._exists), - _isDir(p._isDir), - _isFile(p._isFile), - _modTime(p._modTime), - _size(p._size) -{ -} - -SGPath& SGPath::operator=(const SGPath& p) -{ - path = p.path; - _permission_checker = p._permission_checker, - _cached = p._cached; - _rwCached = p._rwCached; - _cacheEnabled = p._cacheEnabled; - _canRead = p._canRead; - _canWrite = p._canWrite; - _exists = p._exists; - _isDir = p._isDir; - _isFile = p._isFile; - _modTime = p._modTime; - _size = p._size; - return *this; -} - -// destructor -SGPath::~SGPath() { -} - // set path void SGPath::set( const string& p ) { path = p; diff --git a/simgear/misc/sg_path.hxx b/simgear/misc/sg_path.hxx index 38b391a6..75129164 100644 --- a/simgear/misc/sg_path.hxx +++ b/simgear/misc/sg_path.hxx @@ -65,11 +65,6 @@ public: /** Default constructor */ explicit SGPath(PermissionChecker validator = NULL); - /** Copy contructor */ - SGPath(const SGPath& p); - - SGPath& operator=(const SGPath& p); - /** * Construct a path based on the starting path provided. * @param p initial path @@ -87,9 +82,6 @@ public: const std::string& r, PermissionChecker validator = NULL ); - /** Destructor */ - ~SGPath(); - /** * Set path to a new value * @param p new path