From 972b14c09b4257f1f99f70fd4c6dc3fb77dc5be0 Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 13 Sep 2021 02:05:11 -0400 Subject: [PATCH] [rust] remove NCSTYLE_BLINK --- rust/src/bindings.rs | 1 - rust/src/cells/mod.rs | 5 ----- rust/src/notcurses/methods.rs | 4 +--- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/rust/src/bindings.rs b/rust/src/bindings.rs index 0f9c39fd1..de8697cdb 100644 --- a/rust/src/bindings.rs +++ b/rust/src/bindings.rs @@ -666,7 +666,6 @@ pub use ffi::{ // NCSTYLE_UNDERCURL, // NCSTYLE_BOLD, // NCSTYLE_STRUCK, -// NCSTYLE_BLINK, // NCSTYLE_NONE, // nctablet -------------------------------------------------------------------- diff --git a/rust/src/cells/mod.rs b/rust/src/cells/mod.rs index 6263b8e98..da11ff7bc 100644 --- a/rust/src/cells/mod.rs +++ b/rust/src/cells/mod.rs @@ -290,7 +290,6 @@ pub type NcEgcBackstop = u8; /// - [`NCSTYLE_UNDERCURL`] /// - [`NCSTYLE_STRUCK`] /// - [`NCSTYLE_BOLD`] -/// - [`NCSTYLE_BLINK`] /// - [`NCSTYLE_NONE`] /// /// ## Diagram @@ -321,9 +320,6 @@ pub const NCSTYLE_STRUCK: u16 = crate::bindings::ffi::NCSTYLE_STRUCK as u16; /// pub const NCSTYLE_BOLD: u16 = crate::bindings::ffi::NCSTYLE_BOLD as u16; -/// -pub const NCSTYLE_BLINK: u16 = crate::bindings::ffi::NCSTYLE_BLINK as u16; - /// pub const NCSTYLE_NONE: u16 = crate::bindings::ffi::NCSTYLE_NONE as u16; @@ -344,7 +340,6 @@ impl NcStyleMethods for NcStyle { NCSTYLE_UNDERCURL, NCSTYLE_STRUCK, NCSTYLE_BOLD, - NCSTYLE_BLINK, NCSTYLE_NONE, ]; for s in &styles { diff --git a/rust/src/notcurses/methods.rs b/rust/src/notcurses/methods.rs index b01fbcd82..ab96512a3 100644 --- a/rust/src/notcurses/methods.rs +++ b/rust/src/notcurses/methods.rs @@ -6,7 +6,7 @@ use crate::{ cstring, error, error_ref_mut, notcurses_init, rstring, Nc, NcAlign, NcBlitter, NcChannels, NcDim, NcError, NcFile, NcInput, NcLogLevel, NcOptions, NcPlane, NcResult, NcScale, NcStats, NcStyle, NcStyleMethods, NcTime, NCOPTION_NO_ALTERNATE_SCREEN, NCOPTION_SUPPRESS_BANNERS, - NCRESULT_ERR, NCSTYLE_BLINK, NCSTYLE_BOLD, NCSTYLE_ITALIC, NCSTYLE_NONE, NCSTYLE_STRUCK, + NCRESULT_ERR, NCSTYLE_BOLD, NCSTYLE_ITALIC, NCSTYLE_NONE, NCSTYLE_STRUCK, NCSTYLE_UNDERCURL, NCSTYLE_UNDERLINE, }; @@ -448,7 +448,6 @@ impl Nc { "undercurl" => style.add(NCSTYLE_UNDERCURL), "struck" => style.add(NCSTYLE_STRUCK), "bold" => style.add(NCSTYLE_BOLD), - "blink" => style.add(NCSTYLE_BLINK), "none" => (), _ => { errstr.push_str(s); @@ -693,7 +692,6 @@ impl Nc { NCSTYLE_UNDERCURL => "undercurl", NCSTYLE_STRUCK => "struck", NCSTYLE_BOLD => "bold", - NCSTYLE_BLINK => "blink", #[allow(unreachable_patterns)] // FIXME NCSTYLE_NONE => "none", _ => "none",