[Dune] [Dune-Commit] dune-common r6279 - trunk/dune/common
Oliver Sander
sander at mi.fu-berlin.de
Tue Nov 30 12:10:31 CET 2010
Andreas!
> I think deprecating a method should involve removing its usage in any
> dune core module.
>
a) If you have read the commit mails you will have certainly
noticed that people are working on it
b) Your opinion is new in the sense that previously we have
always first deprecated stuff and then removed its uses
c) Removing the uses is easier with the deprecation warning
on. Please don't make life harder on people just because
you personally don't care about this issue.
Best,
Oliver
> Especially in a case like this where an obvious substitution for this
> method is not available.
> We decided to deprecate this method under the assumption that it was not
> used anymore -
> as far as I remember.somebody checked the core modules and stated that it
> was not used - this was wrong information.
>
> If you are afraid that this issue will be forgotten than we can open a
> flyspray task.
>
> Best
> Andreas
>
> On 30/11/10 10:55, Oliver Sander wrote:
>
>> Hi Andreas!
>> The method basicType() is deprecated, hence the DUNE_DEPRECATED
>> attribute should be in the code. If the warnings bother you then you
>> are free to remove it in your local copy, but I would want to keep it in
>> the repository. Otherwise we will just forget about it. So please
>> revert
>> your patch.
>>
>> Best,
>> Oliver
>>
>> Am 30.11.2010 00:33, schrieb dedner at dune-project.org:
>>
>>> Author: dedner
>>> Date: 2010-11-30 00:33:34 +0100 (Tue, 30 Nov 2010)
>>> New Revision: 6279
>>>
>>> Modified:
>>> trunk/dune/common/geometrytype.hh
>>> Log:
>>> let us deprecated this when it is really not used anymore
>>>
>>> Modified: trunk/dune/common/geometrytype.hh
>>> ===================================================================
>>> --- trunk/dune/common/geometrytype.hh 2010-11-29 12:06:01 UTC (rev
>>> 6278)
>>> +++ trunk/dune/common/geometrytype.hh 2010-11-29 23:33:34 UTC (rev
>>> 6279)
>>> @@ -243,7 +243,7 @@
>>> }
>>>
>>> /** \brief Return the basic type of the type */
>>> - BasicType basicType() const DUNE_DEPRECATED {
>>> + BasicType basicType() const {
>>> if (isSimplex())
>>> return GeometryType::simplex;
>>> if (isCube())
>>>
>>>
>>> _______________________________________________
>>> Dune-Commit mailing list
>>> Dune-Commit at dune-project.org
>>> http://lists.dune-project.org/mailman/listinfo/dune-commit
>>>
>>>
>>
>>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
--
************************************************************************
* Oliver Sander ** email: sander at mi.fu-berlin.de *
* Freie Universität Berlin ** phone: + 49 (30) 838 75348 *
* Institut für Mathematik ** URL : page.mi.fu-berlin.de/~sander *
* Arnimallee 6 ** -------------------------------------*
* 14195 Berlin, Germany ** Member of MATHEON (www.matheon.de) *
************************************************************************
More information about the Dune
mailing list