Skip to content

Commit 957f17d

Browse files
committed
revert changes to AnyBuffer
Signed-off-by: Teo Koon Peng <[email protected]>
1 parent bb88c8d commit 957f17d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/buffer/any_buffer.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ impl AnyBuffer {
8686
.entry(TypeId::of::<T>())
8787
.or_insert_with(|| Box::leak(Box::new(AnyBufferAccessImpl::<T>::new())))
8888
}
89-
90-
pub fn as_any_buffer(self) -> AnyBuffer {
91-
self
92-
}
9389
}
9490

9591
impl std::fmt::Debug for AnyBuffer {
@@ -215,14 +211,6 @@ impl<T: 'static + Send + Sync + Any> From<BufferKey<T>> for AnyBufferKey {
215211
}
216212
}
217213

218-
impl<T: 'static + Send + Sync + Any> TryFrom<AnyBufferKey> for BufferKey<T> {
219-
type Error = OperationError;
220-
221-
fn try_from(value: AnyBufferKey) -> Result<Self, Self::Error> {
222-
value.downcast_for_message().or_broken()
223-
}
224-
}
225-
226214
/// Similar to [`BufferView`][crate::BufferView], but this can be unlocked with
227215
/// an [`AnyBufferKey`], so it can work for any buffer whose message types
228216
/// support serialization and deserialization.

0 commit comments

Comments
 (0)