Skip to content

Commit

Permalink
Remove unsupported compressors.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell committed Sep 5, 2024
1 parent d808a25 commit 250c661
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions include/zarr.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ extern "C"
{
ZarrCompressor_None = 0,
ZarrCompressor_Blosc1,
ZarrCompressor_Blosc2, /* Blosc2 is not yet supported */
ZarrCompressor_Zstd, /* Zstd is not yet supported */
ZarrCompressorCount
} ZarrCompressor;

Expand Down Expand Up @@ -125,7 +123,6 @@ extern "C"
ZarrError_InvalidArgument,
ZarrError_Overflow,
ZarrError_InvalidIndex,
ZarrError_NotYetImplemented,
ZarrError_InternalError,
ZarrErrorCount,
} ZarrError;
Expand Down
10 changes: 0 additions & 10 deletions src/streaming/stream.settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ compressor_to_string(ZarrCompressor compressor)
return "none";
case ZarrCompressor_Blosc1:
return "blosc1";
case ZarrCompressor_Blosc2:
return "blosc2";
case ZarrCompressor_Zstd:
return "zstd";
default:
return "(unknown)";
}
Expand Down Expand Up @@ -250,12 +246,6 @@ ZarrStreamSettings_set_compressor(ZarrStreamSettings* settings,
EXPECT_VALID_ARGUMENT(
compressor < ZarrCompressorCount, "Invalid compressor: %d", compressor);

if (compressor >= ZarrCompressor_Blosc2) {
LOG_ERROR("Compressor not yet implemented: %s",
compressor_to_string(compressor));
return ZarrError_NotYetImplemented;
}

settings->compressor = compressor;
return ZarrError_Success;
}
Expand Down

0 comments on commit 250c661

Please sign in to comment.