Skip to content

Commit da8f183

Browse files
committed
commented out unused functions in ~EndianAsyncReader~ AsyncEndianReader
1 parent 4ae8f82 commit da8f183

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/decoder/async_decoder/ifd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::decoder::{
77
use crate::{TiffResult, TiffError};
88
pub use crate::decoder::ifd::Entry;
99

10-
use super::stream::EndianAsyncReader;
10+
use super::stream::AsyncEndianReader;
1111

1212
impl Entry {
1313
pub async fn async_val<R: AsyncRead + AsyncSeek + Unpin>(

src/decoder/async_decoder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use crate::decoder::{
2121
}, ChunkType, DecodingBuffer, DecodingResult, Limits,
2222
};
2323

24-
use stream::EndianAsyncReader;
24+
use stream::AsyncEndianReader;
2525

2626
extern crate async_trait;
2727

src/decoder/async_decoder/stream.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@ macro_rules! read_async_fn {
1919

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

2626
read_async_fn!(read_u16, u16);
27-
read_async_fn!(read_i8, i8);
28-
read_async_fn!(read_i16, i16);
27+
// read_async_fn!(read_i8, i8);
28+
// read_async_fn!(read_i16, i16);
2929
read_async_fn!(read_u32, u32);
30-
read_async_fn!(read_i32, i32);
30+
// read_async_fn!(read_i32, i32);
3131
read_async_fn!(read_u64, u64);
32-
read_async_fn!(read_i64, i64);
33-
read_async_fn!(read_f32, f32);
34-
read_async_fn!(read_f64, f64);
32+
// read_async_fn!(read_i64, i64);
33+
// read_async_fn!(read_f32, f32);
34+
// read_async_fn!(read_f64, f64);
3535
}
3636

3737

3838

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

0 commit comments

Comments
 (0)