Skip to content

Commit

Permalink
[Playback] Remove deprecated macro (#5231)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger authored Jan 29, 2025
1 parent ffddff7 commit 38c295d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void CompareState::draw(const core::visual::VisualParams* vparams)
CompareStateCreator::CompareStateCreator(const core::ExecParams* params)
: Visitor(params)
, sceneName("")
#if SOFAGENERALLOADER_HAVE_ZLIB
#if SOFA_COMPONENT_PLAYBACK_HAVE_ZLIB
, extension(".txt.gz")
#else
, extension(".txt")
Expand All @@ -277,7 +277,7 @@ CompareStateCreator::CompareStateCreator(const core::ExecParams* params)
CompareStateCreator::CompareStateCreator(const std::string &n, const core::ExecParams* params, bool i, int c)
: Visitor(params)
, sceneName(n)
#if SOFAGENERALLOADER_HAVE_ZLIB
#if SOFA_COMPONENT_PLAYBACK_HAVE_ZLIB
, extension(".txt.gz")
#else
, extension(".txt")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ void CompareTopology::processCompareTopology()
CompareTopologyCreator::CompareTopologyCreator(const core::ExecParams* params)
:Visitor(params)
, sceneName("")
#if SOFAGENERALLOADER_HAVE_ZLIB
#if SOFA_COMPONENT_PLAYBACK_HAVE_ZLIB
, extension(".txt.gz")
#else
, extension(".txt")
Expand All @@ -312,7 +312,7 @@ CompareTopologyCreator::CompareTopologyCreator(const core::ExecParams* params)
CompareTopologyCreator::CompareTopologyCreator(const std::string &n, const core::ExecParams* params, bool i, int c)
:Visitor(params)
, sceneName(n)
#if SOFAGENERALLOADER_HAVE_ZLIB
#if SOFA_COMPONENT_PLAYBACK_HAVE_ZLIB
, extension(".txt.gz")
#else
, extension(".txt")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,6 @@ namespace sofa::component::playback
constexpr const char* MODULE_VERSION = "@PROJECT_VERSION@";
} // namespace sofa::component::playback

// Keep the previous macros
// This backward compatibility will be removed at v23.06
#ifndef SOFAGENERALLOADER_HAVE_ZLIB
#define SOFAGENERALLOADER_HAVE_ZLIB SOFA_COMPONENT_PLAYBACK_HAVE_ZLIB
#endif
#ifndef SOFAEXPORTER_HAVE_ZLIB
#define SOFAEXPORTER_HAVE_ZLIB SOFA_COMPONENT_PLAYBACK_HAVE_ZLIB
#endif

#ifdef SOFA_BUILD_SOFA_COMPONENT_PLAYBACK
#define SOFA_ATTRIBUTE_DEPRECATED__RENAME_DATA_IN_PLAYBACK()
#else
Expand Down

0 comments on commit 38c295d

Please sign in to comment.