@@ -6,8 +6,7 @@ use crate::{
66 cloud_object:: {
77 CloudModelType , CloudObject , CloudObjectEventEntrypoint , CreateCloudObjectResult ,
88 CreateObjectRequest , GenericCloudObject , GenericServerObject , GenericStringObjectFormat ,
9- GenericStringObjectUniqueKey , ObjectType , Revision , ServerCloudObject ,
10- UpdateCloudObjectResult ,
9+ GenericStringObjectUniqueKey , ObjectType , Revision , UpdateCloudObjectResult ,
1110 } ,
1211 drive:: { items:: WarpDriveItem , CloudObjectTypeAndId } ,
1312 persistence:: ModelEvent ,
@@ -108,9 +107,6 @@ pub trait StringModel: Clone + Debug + PartialEq + Send + Sync + 'static {
108107 object : & Self :: CloudObjectType ,
109108 ) -> QueueItem ;
110109
111- /// Returns a new instance from a server update, or None if the update should be ignored.
112- fn new_from_server_update ( & self , server_cloud_object : & ServerCloudObject ) -> Option < Self > ;
113-
114110 /// Returns whether this model type should clear on a unique key conflict.
115111 fn should_clear_on_unique_key_conflict ( & self ) -> bool {
116112 false
@@ -276,12 +272,6 @@ where
276272 true
277273 }
278274
279- fn new_from_server_update ( & self , server_cloud_object : & ServerCloudObject ) -> Option < Self > {
280- self . string_model
281- . new_from_server_update ( server_cloud_object)
282- . map ( Self :: new)
283- }
284-
285275 fn serialized ( & self ) -> SerializedModel {
286276 S :: serialize ( & self . string_model )
287277 }
0 commit comments