[libcalamares] Revert PRIVATETEST

- looks funny
- is hard to get clang-format to respect this; it's intended as an
  access-modifier, but those are baked into the code rather than
  being configurable.
- is probably rare enough that #ifdef is acceptable
This commit is contained in:
Adriaan de Groot 2020-08-11 11:09:07 +02:00
parent 53eb6c614a
commit 34e31d4331
2 changed files with 4 additions and 13 deletions

View File

@ -76,16 +76,4 @@
#endif #endif
#endif #endif
/*
* For private functions that should be public for testing purposes,
* use PRIVATETEST, which is private except when building tests.
*/
#ifndef PRIVATETEST
#if defined( BUILD_AS_TEST )
#define PRIVATETEST public
#else
#define PRIVATETEST private
#endif
#endif
#endif #endif

View File

@ -46,7 +46,10 @@ class DLLEXPORT InstanceDescription
{ {
using InstanceKey = Calamares::ModuleSystem::InstanceKey; using InstanceKey = Calamares::ModuleSystem::InstanceKey;
PRIVATETEST : InstanceDescription( InstanceKey&& key, int weight ); #ifdef BUILD_AS_TEST
public:
#endif
InstanceDescription( InstanceKey&& key, int weight );
public: public:
/** @brief An invalid InstanceDescription /** @brief An invalid InstanceDescription