[vtk-developers] clean-up VTK_LEGACY code

Dan Lipsa dan.lipsa at kitware.com
Mon Jun 1 16:45:38 EDT 2015


On Mon, Jun 1, 2015 at 3:58 PM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:

> Can you provide a list of the code to be removed?


Here is the merge request.

https://gitlab.kitware.com/vtk/vtk/merge_requests/235



> Perhaps a notice to
> the users and developers lists on how to test for the removed code?
>

Users who update VTK regularly are warned using the VTK_LEGACY_REPLACED_BODY
mechanism if they call a deprecated function. If they want, users can
define VTK_LEGACY_REMOVE to
remove all deprecated code from VTK. Some code is only removed
if VTK_LEGACY_REMOVE is defined,
so it may be harder to know if one uses it.

So, the best way to test for deprecated code seems to be to
define VTK_LEGACY_REMOVE.

Users moving from old versions of VTK where the code was not deprecated to
a new version where the
code has been removed will get a compiler error for functions that have
changed name or have been removed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150601/057dc2b8/attachment.html>


More information about the vtk-developers mailing list