# HG changeset patch # User Pierre-Yves David # Date 2024-09-12 08:08:28 # Node ID 06549ab4281baf014e4003b2096c9df8651fb5a3 # Parent 0dbf6a5ccf5ff493b22996dbd1ccda95c229a498 rust-inner-revlog: drop some outdated comment diff --git a/rust/hg-core/src/revlog/index.rs b/rust/hg-core/src/revlog/index.rs --- a/rust/hg-core/src/revlog/index.rs +++ b/rust/hg-core/src/revlog/index.rs @@ -350,9 +350,6 @@ impl Index { return Err(HgError::corrupted("unsupported revlog version")); } - // This is only correct because we know version is REVLOGV1. - // In v2 we always use generaldelta, while in v0 we never use - // generaldelta. Similar for [is_inline] (it's only used in v1). let uses_generaldelta = header.format_flags().uses_generaldelta(); if header.format_flags().is_inline() { @@ -424,7 +421,6 @@ impl Index { assert!(self.is_inline()); { // Wrap in a block to drop the read guard - // TODO perf? let mut offsets = self.offsets.write().unwrap(); if offsets.is_none() { offsets.replace(inline_scan(&self.bytes.bytes).1);