Remove const methods as they will not be ignored by swig anyways.

This reduces the warning during the swig call.