Skip to content

Commit

Permalink
refactor: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hocuri committed Jan 24, 2025
1 parent 9745a1e commit 5d5d147
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
use core::cmp::max;
use std::ffi::OsStr;
use std::fmt;
use std::io::{Cursor, Seek};
use std::iter::FusedIterator;
use std::mem;
Expand Down Expand Up @@ -693,7 +692,7 @@ fn file_hash(src: &Path) -> Result<blake3::Hash> {
}

/// Returns image file size and Exif.
pub fn image_metadata(file: &std::fs::File) -> Result<(u64, Option<exif::Exif>)> {
fn image_metadata(file: &std::fs::File) -> Result<(u64, Option<exif::Exif>)> {
let len = file.metadata()?.len();
let mut bufreader = std::io::BufReader::new(file);
let exif = exif::Reader::new().read_from_container(&mut bufreader).ok();
Expand All @@ -714,12 +713,6 @@ fn exif_orientation(exif: &exif::Exif, context: &Context) -> i32 {
0
}

impl fmt::Display for BlobObject<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "$BLOBDIR/{}", self.name)
}
}

/// All files in the blobdir.
///
/// This exists so we can have a [`BlobDirIter`] which needs something to own the data of
Expand Down

0 comments on commit 5d5d147

Please sign in to comment.