fix warnings
[nihav.git] / nihav-core / src / codecs / mod.rs
index 76c683d0a9adae6cb7d0fd97fe9a2e37b7e42961..4edb2ee8aa97254e845bc96ad9087e7574d114e5 100644 (file)
@@ -3,7 +3,6 @@ use std::ops::{Add, AddAssign, Sub, SubAssign};
 
 use crate::frame::*;
 use std::rc::Rc;
-use std::cell::RefCell;
 use std::mem;
 use crate::io::byteio::ByteIOError;
 use crate::io::bitreader::BitReaderError;
@@ -45,10 +44,6 @@ impl From<AllocatorError> for DecoderError {
     fn from(_: AllocatorError) -> Self { DecoderError::AllocError }
 }
 
-macro_rules! validate {
-    ($a:expr) => { if !$a { println!("check failed at {}:{}", file!(), line!()); return Err(DecoderError::InvalidData); } };
-}
-
 #[allow(dead_code)]
 pub struct HAMShuffler {
     lastframe: Option<NAVideoBuffer<u8>>,