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

Code cleanup - Remove getcompress functions #477

Closed

Conversation

bmribler
Copy link
Collaborator

@bmribler bmribler commented Feb 1, 2024

The functions SDgetcompress/GRgetcompress have incorrect behavior and were deprecated in favor of SDgetcompinfo/GRgetcompinfo several releases ago. They should not be used anymore.

Removed the internal function HCPgetcompress and replaced the contents of SDgetcompress/GRgetcompress with a call to SDgetcompinfo/GRgetcompinfo.

Description:
    A special bit, SZ_H4_REV_2, was used to indicate that the szip info
    was stored in a new way.  This bit was set in the options_mask field
    of the szip info struct.  As a result, the value of options_mask became
    incorrect.

    This PR removed the special bit from the options_mask before returning it
    to the application.  This change does not affect the data format in the
    file.
Description:
    The functions SDgetcompress/GRgetcompress have incorrect behavior and
    were deprecated in favor of SDgetcompinfo/GRgetcompinfo several
    versions ago.  They should not be used anymore.

    Removed the internal function HCPgetcompress and replaced the
    contents of SDgetcompress/GRgetcompress with a call to
    SDgetcompinfo/GRgetcompinfo.
@byrnHDF
Copy link
Collaborator

byrnHDF commented Feb 1, 2024

We should take them out of Java with deprecate tag. And just remove the tests.

@derobins derobins added Component - C Library Core C library issues Type - Improvement Improvements that don't add a new feature or functionality Priority - 3. Low 🔽 Code cleanup, small feature change requests, etc. labels Feb 1, 2024
@byrnHDF
Copy link
Collaborator

byrnHDF commented Feb 5, 2024

We should take them out of Java with deprecate tag. And just remove the tests.

HCP routines were not added to Java, so this is not an issue

@bmribler bmribler closed this Feb 6, 2024
@bmribler bmribler deleted the remove_getcompress_functions branch March 9, 2024 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - C Library Core C library issues Priority - 3. Low 🔽 Code cleanup, small feature change requests, etc. Type - Improvement Improvements that don't add a new feature or functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants