Skip to content

Commit

Permalink
Remove accessors from struct.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunrd0 committed Jan 29, 2025
1 parent 8c67284 commit b28995e
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions tiledb/sm/rest/rest_capabilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,12 @@
*
* @section DESCRIPTION
*
* Helper class to encapsulate REST supported versions and capabilities.
* Helper struct to encapsulate REST supported versions and capabilities.
*/

namespace tiledb::sm {

class RestClientRemote;

struct RestCapabilities {
friend RestClientRemote;

public:
struct TileDBVersion {
TileDBVersion() = default;

Expand Down Expand Up @@ -74,31 +69,6 @@ struct RestCapabilities {

bool operator==(const RestCapabilities& rhs) const = default;

/**
* @return Current version of TileDB core deployed on the REST server.
*/
[[nodiscard]] inline const TileDBVersion& tiledb_version() const {
return rest_tiledb_version_;
}

/**
* @return Minimum version of TileDB core supported by the REST server.
*/
[[nodiscard]] inline const TileDBVersion& minimum_supported_tiledb_version()
const {
return rest_tiledb_version_;
}

/**
* Determine if we have detected the REST server capabailities.
*
* @return True if the REST server has known capabilities, else False.
*/
[[nodiscard]] inline const bool& detected() const {
return detected_;
}

private:
/// Whether or not the REST capabilities have been initialized.
bool detected_ = false;

Expand Down

0 comments on commit b28995e

Please sign in to comment.