Show More
@@ -350,9 +350,6 impl Index { | |||
|
350 | 350 | return Err(HgError::corrupted("unsupported revlog version")); |
|
351 | 351 | } |
|
352 | 352 | |
|
353 | // This is only correct because we know version is REVLOGV1. | |
|
354 | // In v2 we always use generaldelta, while in v0 we never use | |
|
355 | // generaldelta. Similar for [is_inline] (it's only used in v1). | |
|
356 | 353 | let uses_generaldelta = header.format_flags().uses_generaldelta(); |
|
357 | 354 | |
|
358 | 355 | if header.format_flags().is_inline() { |
@@ -424,7 +421,6 impl Index { | |||
|
424 | 421 | assert!(self.is_inline()); |
|
425 | 422 | { |
|
426 | 423 | // Wrap in a block to drop the read guard |
|
427 | // TODO perf? | |
|
428 | 424 | let mut offsets = self.offsets.write().unwrap(); |
|
429 | 425 | if offsets.is_none() { |
|
430 | 426 | offsets.replace(inline_scan(&self.bytes.bytes).1); |
General Comments 0
You need to be logged in to leave comments.
Login now