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

Remove DL module #8882

Merged
merged 2 commits into from
Mar 6, 2020
Merged

Remove DL module #8882

merged 2 commits into from
Mar 6, 2020

Conversation

bcardiff
Copy link
Member

@bcardiff bcardiff commented Mar 5, 2020

The module is no longer used, nor included in prelude, and does not offer much functionality.


module DL
def self.dlopen(path, mode = LibC::RTLD_LAZY | LibC::RTLD_GLOBAL) : Void*
LibC.dlopen(path, mode)
Copy link
Member

Choose a reason for hiding this comment

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

Should we remove the fun definitions for dlopen too?

@asterite
Copy link
Member

asterite commented Mar 5, 2020

Should be removed from docs_main too.

Deprecating it wouldn't hurt either, people might be using it because it's documented.

@asterite
Copy link
Member

asterite commented Mar 5, 2020

@bcardiff
Copy link
Member Author

bcardiff commented Mar 5, 2020

In this case I think there is no need for a deprecation cycle. The module is most likely not used in the wild. But we can go that route if that is preferred. I'll wait for reviews.

@straight-shoota
Copy link
Member

I couldn't find any single usage in Crystal repositories available on Github. So I guess it's fine to remove without deprecation (there's certainly Crystal code outside of Github, but it's a very strong indicator that there is really no real world use).

@bcardiff bcardiff merged commit 80b8c5f into crystal-lang:master Mar 6, 2020
@bcardiff bcardiff added this to the 0.34.0 milestone Mar 6, 2020
@bcardiff bcardiff deleted the cleanup/dl branch March 6, 2020 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants