Skip to content

Commit

Permalink
src/ NFC fix unused code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Sep 16, 2022
1 parent dff2927 commit 2704bbe
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 24 deletions.
5 changes: 5 additions & 0 deletions src/data/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ const DTFSS_BeHMSYzp: DTFSSet = DTFSSet {
//
#[doc(hidden)]
#[cfg(any(debug_assertions,test))]
#[allow(dead_code)]
pub(crate) const DTP_ALL: &[&DateTimePattern_str] = &[
DTP_YmdHMSzc,
DTP_YmdHMSz,
Expand Down Expand Up @@ -822,6 +823,7 @@ const CGN_TZ: &CaptureGroupName = "tz";
/// all capture group names, for testing
#[doc(hidden)]
#[cfg(any(debug_assertions,test))]
#[allow(dead_code)]
pub(crate) const CGN_ALL: [&CaptureGroupName; 9] = [
CGN_YEAR,
CGN_MONTH,
Expand Down Expand Up @@ -875,6 +877,7 @@ pub const CGP_FRACTIONAL: &CaptureGroupPattern = r"(?P<fractional>\d{3,9})";
/// for help in testing only
#[doc(hidden)]
#[cfg(any(debug_assertions,test))]
#[allow(dead_code)]
pub(crate) const CGP_MONTH_ALL: &[&CaptureGroupPattern] = &[
CGP_MONTHm,
CGP_MONTHb,
Expand All @@ -885,6 +888,7 @@ pub(crate) const CGP_MONTH_ALL: &[&CaptureGroupPattern] = &[
/// for help in testing only
#[doc(hidden)]
#[cfg(any(debug_assertions,test))]
#[allow(dead_code)]
pub(crate) const CGP_DAY_ALL: &[&CaptureGroupPattern] = &[
CGP_DAYd,
CGP_DAYe,
Expand Down Expand Up @@ -1297,6 +1301,7 @@ lazy_static! {
/// for help in testing only
#[doc(hidden)]
#[cfg(any(debug_assertions,test))]
#[allow(dead_code)]
pub(crate) const CGP_TZ_ALL: &[&CaptureGroupPattern] = &[
CGP_TZz,
CGP_TZzc,
Expand Down
14 changes: 0 additions & 14 deletions src/printer/printers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ use crate::data::datetime::{

use crate::printer_debug::printers::{
dp_err,
dp_wrn,
p_wrn,
};

extern crate more_asserts;
Expand All @@ -47,18 +45,6 @@ use more_asserts::{
debug_assert_le,
};

extern crate si_trace_print;
use si_trace_print::{
dpo,
dpn,
dpx,
dp,
dpfo,
dpfn,
dpfx,
dpfñ,
};

// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// globals and constants
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand Down
2 changes: 0 additions & 2 deletions src/printer_debug/printers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ use si_trace_print::stack::stack_offset_set;
#[cfg(test)]
use si_trace_print::{
dpo,
dpn,
dpx,
dpñ,
dpfo,
dpfn,
Expand Down
2 changes: 0 additions & 2 deletions src/readers/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ use crate::printer_debug::printers::{

extern crate more_asserts;
use more_asserts::{
assert_le,
assert_ge,
debug_assert_le,
debug_assert_ge,
};
Expand Down
2 changes: 0 additions & 2 deletions src/readers/syslogprocessor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ use rangemap::RangeMap;
extern crate si_trace_print;
use si_trace_print::{
dpo,
dpn,
dpx,
dpñ,
dpfo,
dpfn,
Expand Down
4 changes: 0 additions & 4 deletions src/tests/blockreader_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ use lazy_static::lazy_static;

extern crate si_trace_print;
use si_trace_print::{
dpo,
dpn,
dpx,
dpñ,
dpfo,
dpfn,
dpfx,
Expand Down

0 comments on commit 2704bbe

Please sign in to comment.