Navigation Menu

Skip to content

Commit

Permalink
Remove unused assignment operators
Browse files Browse the repository at this point in the history
To suppress the following warnings.
./storage/mroonga/vendor/groonga/lib/dat/dat.hpp:178: warning:
  ‘virtual grn::dat::Exception& grn::dat::Exception::operator=(const grn::dat::Exception&)’ was hidden
./storage/mroonga/vendor/groonga/lib/dat/dat.hpp:213: warning:
  by ‘grn::dat::Error<T>& grn::dat::Error<T>::operator=(const grn::dat::Error<T>&)

Reported by Kentoku Shiba. Thanks!!!
  • Loading branch information
s-yata committed Jan 30, 2015
1 parent 7974b44 commit 033889a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/dat/dat.hpp
Expand Up @@ -175,13 +175,6 @@ class Exception : public std::exception {
what_(ex.what_) {}
virtual ~Exception() throw() {}

virtual Exception &operator=(const Exception &ex) throw() {
file_ = ex.file_;
line_ = ex.line_;
what_ = ex.what_;
return *this;
}

virtual ErrorCode code() const throw() = 0;
virtual const char *file() const throw() {
return file_;
Expand Down Expand Up @@ -210,11 +203,6 @@ class Error : public Exception {
: Exception(ex) {}
virtual ~Error() throw() {}

virtual Error &operator=(const Error &ex) throw() {
*static_cast<Exception *>(this) = ex;
return *this;
}

virtual ErrorCode code() const throw() {
return T;
}
Expand Down

0 comments on commit 033889a

Please sign in to comment.