language: Remove buffer fingerprinting (#9007)

Followup to #9005 that actually removes buffer fingerprinting.

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-03-21 17:03:26 +01:00 committed by GitHub
parent 1f21088591
commit 6f2f61c9b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 22 additions and 122 deletions

View file

@ -13,17 +13,6 @@ use text::*;
pub use proto::{BufferState, Operation};
/// Serializes a [`RopeFingerprint`] to be sent over RPC.
pub fn serialize_fingerprint(fingerprint: RopeFingerprint) -> String {
fingerprint.to_hex()
}
/// Deserializes a [`RopeFingerprint`] from the RPC representation.
pub fn deserialize_fingerprint(fingerprint: &str) -> Result<RopeFingerprint> {
RopeFingerprint::from_hex(fingerprint)
.map_err(|error| anyhow!("invalid fingerprint: {}", error))
}
/// Deserializes a `[text::LineEnding]` from the RPC representation.
pub fn deserialize_line_ending(message: proto::LineEnding) -> text::LineEnding {
match message {