[rust] remove NCSTYLE_BLINK

pull/2166/head
nick black 3 years ago
parent 4789aca20f
commit 972b14c09b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -666,7 +666,6 @@ pub use ffi::{
// NCSTYLE_UNDERCURL,
// NCSTYLE_BOLD,
// NCSTYLE_STRUCK,
// NCSTYLE_BLINK,
// NCSTYLE_NONE,
// nctablet --------------------------------------------------------------------

@ -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 {

@ -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",

Loading…
Cancel
Save