Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark deprecated functionality with C++ attributes and resolve internal usage of deprecated functions #4551

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

matejk
Copy link
Contributor

@matejk matejk commented May 8, 2024

Closes #4426.

@matejk matejk self-assigned this May 8, 2024
@matejk matejk force-pushed the 4426-deprecated-functionality branch 12 times, most recently from f2c5384 to bc4b50a Compare May 10, 2024 13:20
Copy link
Member

@aleks-f aleks-f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if @deprecated is needed/used by PocoDoc, @obiltschnig would know

Foundation/include/Poco/ClassLibrary.h Outdated Show resolved Hide resolved
@matejk matejk force-pushed the 4426-deprecated-functionality branch from bc4b50a to 3999dcd Compare May 13, 2024 11:31
@@ -85,13 +85,13 @@ class Foundation_API LocalDateTime
/// Creates a LocalDateTime from the UTC time given in dateTime,
/// using the time zone differential of the current time zone.

//@ deprecated
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@obiltschnig, @aleks-f: Some ctors/functions in this class seem not to have an alternative to be used. They are for example used in Dynamic/Var.h.

Is complete class deprecated?

//@deprecated
class RSAKey;
class [[deprecated]] ECKey;
class [[deprecated]] RSAKey;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@obiltschnig , what shall be used instead of these?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matejk anything not going through EVP api is deprecated, see this

some serious breakage (anything non-EVP in the interfaces must go) to rectify that; I'm not sure we want to embark on that for 1.14

@matejk matejk force-pushed the 4426-deprecated-functionality branch from 3999dcd to f63afd3 Compare May 24, 2024 07:27
@matejk matejk force-pushed the 4426-deprecated-functionality branch from f63afd3 to da8037a Compare May 24, 2024 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Remove deprecated code
2 participants