@@ -16,7 +16,6 @@ use uuid::Uuid;
1616
1717use super :: folder_observe:: ViewChangeSender ;
1818use super :: hierarchy_builder:: { FlattedViews , ParentChildViews } ;
19- use super :: revision:: RevisionMapping ;
2019use super :: section:: { Section , SectionItem , SectionMap } ;
2120use super :: {
2221 FolderData , ParentChildRelations , SectionChangeSender , SpacePermission , TrashInfo , View ,
@@ -57,7 +56,6 @@ const VIEWS: &str = "views";
5756const PARENT_CHILD_VIEW_RELATION : & str = "relation" ;
5857const CURRENT_VIEW : & str = "current_view" ;
5958const CURRENT_VIEW_FOR_USER : & str = "current_view_for_user" ;
60- const REVISION_MAP : & str = "revision_map" ;
6159
6260pub ( crate ) const FAVORITES_V1 : & str = "favorites" ;
6361const SECTION : & str = "section" ;
@@ -1098,11 +1096,6 @@ impl Folder {
10981096 }
10991097 }
11001098
1101- pub fn replace_view ( & mut self , from : & ViewId , to : & ViewId , uid : i64 ) -> bool {
1102- let mut txn = self . collab . transact_mut ( ) ;
1103- self . body . replace_view ( & mut txn, from, to, Some ( uid) )
1104- }
1105-
11061099 /// Get a view by id. When uid is provided, includes user-specific data like is_favorite.
11071100 /// When uid is None, returns base view data without user-specific enrichment.
11081101 pub fn get_view ( & self , view_id : & ViewId , uid : Option < i64 > ) -> Option < Arc < View > > {
@@ -1244,9 +1237,6 @@ impl FolderBody {
12441237 let parent_child_relations = Arc :: new ( ParentChildRelations :: new (
12451238 root. get_or_init ( & mut txn, PARENT_CHILD_VIEW_RELATION ) ,
12461239 ) ) ;
1247- let revision_map = Arc :: new ( RevisionMapping :: new (
1248- root. get_or_init ( & mut txn, REVISION_MAP ) ,
1249- ) ) ;
12501240
12511241 let section = Arc :: new ( SectionMap :: create (
12521242 & mut txn,
@@ -1262,7 +1252,6 @@ impl FolderBody {
12621252 . map ( |notifier| notifier. view_change_tx . clone ( ) ) ,
12631253 parent_child_relations,
12641254 section. clone ( ) ,
1265- revision_map,
12661255 ) ) ;
12671256
12681257 if let Some ( folder_data) = folder_data {
@@ -1612,18 +1601,6 @@ impl FolderBody {
16121601 current_view_for_user. try_update ( txn, uid. to_string ( ) , view. to_string ( ) ) ;
16131602 }
16141603 }
1615-
1616- pub fn replace_view (
1617- & self ,
1618- txn : & mut TransactionMut ,
1619- old_view_id : & ViewId ,
1620- new_view_id : & ViewId ,
1621- uid : Option < i64 > ,
1622- ) -> bool {
1623- uid
1624- . map ( |uid| self . views . replace_view ( txn, old_view_id, new_view_id, uid) )
1625- . unwrap_or ( false )
1626- }
16271604}
16281605
16291606pub fn default_folder_data ( uid : i64 , workspace_id : & str ) -> FolderData {
0 commit comments