Skip to content

Commit

Permalink
commented out unused functions in ~EndianAsyncReader~ AsyncEndianReader
Browse files Browse the repository at this point in the history
  • Loading branch information
feefladder committed Sep 30, 2024
1 parent 4ae8f82 commit da8f183
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/decoder/async_decoder/ifd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::decoder::{
use crate::{TiffResult, TiffError};
pub use crate::decoder::ifd::Entry;

use super::stream::EndianAsyncReader;
use super::stream::AsyncEndianReader;

impl Entry {
pub async fn async_val<R: AsyncRead + AsyncSeek + Unpin>(
Expand Down
2 changes: 1 addition & 1 deletion src/decoder/async_decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::decoder::{
}, ChunkType, DecodingBuffer, DecodingResult, Limits,
};

use stream::EndianAsyncReader;
use stream::AsyncEndianReader;

extern crate async_trait;

Expand Down
16 changes: 8 additions & 8 deletions src/decoder/async_decoder/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ macro_rules! read_async_fn {

#[async_trait::async_trait]
/// Reader that is aware of the byte order.
pub trait EndianAsyncReader: AsyncRead + Unpin {
pub trait AsyncEndianReader: AsyncRead + Unpin {
/// Byte order that should be adhered to
fn byte_order(&self) -> ByteOrder;

read_async_fn!(read_u16, u16);
read_async_fn!(read_i8, i8);
read_async_fn!(read_i16, i16);
// read_async_fn!(read_i8, i8);
// read_async_fn!(read_i16, i16);
read_async_fn!(read_u32, u32);
read_async_fn!(read_i32, i32);
// read_async_fn!(read_i32, i32);
read_async_fn!(read_u64, u64);
read_async_fn!(read_i64, i64);
read_async_fn!(read_f32, f32);
read_async_fn!(read_f64, f64);
// read_async_fn!(read_i64, i64);
// read_async_fn!(read_f32, f32);
// read_async_fn!(read_f64, f64);
}



impl<R: AsyncRead + Unpin> EndianAsyncReader for SmartReader<R> {
impl<R: AsyncRead + Unpin> AsyncEndianReader for SmartReader<R> {
#[inline(always)]
fn byte_order(&self) -> ByteOrder {
self.byte_order
Expand Down

0 comments on commit da8f183

Please sign in to comment.