Remove deprecated functions

This commit is contained in:
Joonas Javanainen 2017-02-15 20:30:36 +02:00
parent fffff84f8b
commit 373801b9be
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179
3 changed files with 8 additions and 49 deletions

View File

@ -2,6 +2,14 @@
## [Unreleased]
### Removed
- `Window::always_vertical_scollbar` (typo)
- `igPushStyleVavrVec` (typo)
- `ImGuiInputTextFlags::with`
- `ImGuiTreeNodeFlags::with`
- `ImGuiWindowFlags::with`
## [0.0.11] - 2017-02-15
### Added

View File

@ -195,18 +195,6 @@ bitflags!(
}
);
impl ImGuiWindowFlags {
#[deprecated(since = "0.0.11")]
#[inline]
pub fn with(self, mask: ImGuiWindowFlags, value: bool) -> ImGuiWindowFlags {
if value {
self | mask
} else {
self - mask
}
}
}
bitflags!(
/// Condition flags
#[repr(C)]
@ -243,19 +231,6 @@ bitflags!(
}
);
impl ImGuiInputTextFlags {
#[deprecated(since = "0.0.11")]
#[inline]
pub fn with(self, mask: ImGuiInputTextFlags, value: bool) -> ImGuiInputTextFlags {
if value {
self | mask
} else {
self - mask
}
}
}
bitflags!(
/// Flags for selectables
#[repr(C)]
@ -285,18 +260,6 @@ bitflags!(
}
);
impl ImGuiTreeNodeFlags {
#[deprecated(since = "0.0.11")]
#[inline]
pub fn with(self, mask: ImGuiTreeNodeFlags, value: bool) -> ImGuiTreeNodeFlags {
if value {
self | mask
} else {
self - mask
}
}
}
pub type ImGuiTextEditCallback =
Option<extern "C" fn(data: *mut ImGuiTextEditCallbackData) -> c_int>;
@ -833,13 +796,6 @@ extern "C" {
pub fn igGetColorU32Vec(col: *const ImVec4) -> ImU32;
}
#[allow(non_snake_case)]
#[deprecated(since = "0.0.11", note = "name has a typo, please use `igPushStyleVarVec` instead")]
#[inline]
pub unsafe fn igPushStyleVavrVec(idx: ImGuiStyleVar, val: ImVec2) {
igPushStyleVarVec(idx, val);
}
// Parameter stack (current window)
extern "C" {
pub fn igPushItemWidth(item_width: c_float);

View File

@ -136,11 +136,6 @@ impl<'ui, 'p> Window<'ui, 'p> {
self.flags.set(ImGuiWindowFlags_NoBringToFrontOnFocus, value);
self
}
#[deprecated(since = "0.0.11", note = "name has a typo, please use `always_vertical_scrollbar` instead")]
#[inline]
pub fn always_vertical_scollbar(self, value: bool) -> Self {
self.always_vertical_scrollbar(value)
}
#[inline]
pub fn always_vertical_scrollbar(mut self, value: bool) -> Self {
self.flags.set(ImGuiWindowFlags_AlwaysVerticalScrollbar, value);