How do you label code to be deleted in KF6?

Friedrich W. H. Kossebau kossebau at kde.org
Tue Nov 9 10:36:26 GMT 2021


Am Dienstag, 9. November 2021, 03:33:44 CET schrieb Glen Ditchfield:
> I would like to have some members of KCalendarCore's incidence classes
> removed during the transition from KF5 to KF6, and I'd like to be sure
> that the changes won't be missed in the excitement.
> 
> Do you have some preferred way to label such changes?  For example, is
> there some `#if` statement that can be wrapped around the code, such
> that it will be compiled into KF5 but compiled out of KF6?

See https://community.kde.org/Policies/Library_Code_Policy#Deprecation_of_API 
which should help to get you started with such work.

Please extend the docs when you run into unanswered things or would have some 
use-case where some ready-to-copy samples would be good to have.

Cheers
Friedrich




More information about the kde-devel mailing list