Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the use of GlobalKey #8015

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/realm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ set(REALM_SOURCES
mixed.cpp
obj.cpp
object_converter.cpp
global_key.cpp
query_engine.cpp
query_expression.cpp
query_value.cpp
Expand Down Expand Up @@ -157,7 +156,6 @@ set(REALM_INSTALL_HEADERS
error_codes.h
error_codes.hpp
exceptions.hpp
global_key.hpp
group.hpp
group_writer.hpp
handover_defs.hpp
Expand Down
1 change: 0 additions & 1 deletion src/realm/cluster_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,6 @@ void ClusterTree::erase(ObjKey k, CascadeState& state)
}
}
}
m_owner->free_local_id_after_hash_collision(k);
m_owner->erase_from_search_indexes(k);

size_t root_size = m_root->erase(ClusterNode::RowKey(k), state);
Expand Down
176 changes: 0 additions & 176 deletions src/realm/global_key.cpp

This file was deleted.

160 changes: 0 additions & 160 deletions src/realm/global_key.hpp

This file was deleted.

5 changes: 0 additions & 5 deletions src/realm/obj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ Obj::Obj(TableRef table, MemRef mem, ObjKey key, size_t row_ndx)
m_storage_version = get_alloc().get_storage_version();
}

GlobalKey Obj::get_object_id() const
{
return m_table->get_object_id(m_key);
}

ObjLink Obj::get_link() const
{
return ObjLink(m_table->get_key(), m_key);
Expand Down
2 changes: 0 additions & 2 deletions src/realm/obj.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class ClusterTree;
class TableView;
class CascadeState;
class ObjList;
struct GlobalKey;

template <class>
class Lst;
Expand Down Expand Up @@ -100,7 +99,6 @@ class Obj {
{
return m_key;
}
GlobalKey get_object_id() const;
ObjLink get_link() const;

/// Check if the object is still alive
Expand Down
Loading
Loading