|
31 | 31 | #include <realm/exceptions.hpp> |
32 | 32 | #include <realm/impl/cont_transact_hist.hpp> |
33 | 33 | #include <realm/impl/output_stream.hpp> |
34 | | -#include <realm/metrics/metrics.hpp> |
35 | 34 | #include <realm/table.hpp> |
36 | 35 | #include <realm/util/features.h> |
37 | 36 | #include <realm/util/input_stream.hpp> |
@@ -615,9 +614,7 @@ class Group : public ArrayParent { |
615 | 614 |
|
616 | 615 | util::UniqueFunction<void(const CascadeNotification&)> m_notify_handler; |
617 | 616 | util::UniqueFunction<void()> m_schema_change_handler; |
618 | | - std::shared_ptr<metrics::Metrics> m_metrics; |
619 | 617 | std::vector<ToDeleteRef> m_objects_to_delete; |
620 | | - size_t m_total_rows; |
621 | 618 |
|
622 | 619 | Group(SlabAlloc* alloc) noexcept; |
623 | 620 | void init_array_parents() noexcept; |
@@ -690,9 +687,6 @@ class Group : public ArrayParent { |
690 | 687 | void write(util::File& file, const char* encryption_key, uint_fast64_t version_number, TableWriter& writer) const; |
691 | 688 | void write(std::ostream&, bool pad, uint_fast64_t version_numer, TableWriter& writer) const; |
692 | 689 |
|
693 | | - std::shared_ptr<metrics::Metrics> get_metrics() const noexcept; |
694 | | - void set_metrics(std::shared_ptr<metrics::Metrics> other) noexcept; |
695 | | - void update_num_objects(); |
696 | 690 | /// Memory mappings must have been updated to reflect any growth in filesize before |
697 | 691 | /// calling advance_transact() |
698 | 692 | void advance_transact(ref_type new_top_ref, util::InputStream*, bool writable); |
@@ -837,8 +831,6 @@ class Group : public ArrayParent { |
837 | 831 | friend class GroupCommitter; |
838 | 832 | friend class DB; |
839 | 833 | friend class _impl::GroupFriend; |
840 | | - friend class metrics::QueryInfo; |
841 | | - friend class metrics::Metrics; |
842 | 834 | friend class Transaction; |
843 | 835 | friend class TableKeyIterator; |
844 | 836 | friend class CascadeState; |
@@ -1175,16 +1167,6 @@ inline void Group::reset_free_space_tracking() |
1175 | 1167 | m_alloc.reset_free_space_tracking(); // Throws |
1176 | 1168 | } |
1177 | 1169 |
|
1178 | | -inline std::shared_ptr<metrics::Metrics> Group::get_metrics() const noexcept |
1179 | | -{ |
1180 | | - return m_metrics; |
1181 | | -} |
1182 | | - |
1183 | | -inline void Group::set_metrics(std::shared_ptr<metrics::Metrics> shared) noexcept |
1184 | | -{ |
1185 | | - m_metrics = shared; |
1186 | | -} |
1187 | | - |
1188 | 1170 | // The purpose of this class is to give internal access to some, but |
1189 | 1171 | // not all of the non-public parts of the Group class. |
1190 | 1172 | class _impl::GroupFriend { |
|
0 commit comments