Remove deprecated stuff

This commit is contained in:
Joonas Javanainen 2020-09-20 00:00:08 +03:00
parent eefe22a5e6
commit 9401398b29
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179
2 changed files with 5 additions and 20 deletions

View File

@ -26,6 +26,10 @@
- Reduce unnecessary winit cursor changes which earlier caused cursor
flickering or invalid cursors on some platforms (at least Windows)
### Removed
- Various things that were deprecated in imgui-rs 0.4.0
## [0.4.0] - 2020-05-27
### Added

View File

@ -2,9 +2,7 @@
use bitflags::bitflags;
use std::os::raw::c_int;
use crate::string::ImStr;
use crate::widget::tree::{CollapsingHeader, TreeNode, TreeNodeFlags};
use crate::Ui;
use crate::widget::tree::TreeNodeFlags;
bitflags!(
/// Flags for igBeginDragDropSource(), igAcceptDragDropPayload()
@ -123,20 +121,3 @@ bitflags!(
);
pub type ImGuiTreeNodeFlags = TreeNodeFlags;
impl<'ui> Ui<'ui> {
#[deprecated(
since = "0.4.0",
note = "use imgui::TreeNode::new(...), and build() instead"
)]
pub fn tree_node<'a>(&self, id: &'a ImStr) -> TreeNode<'a> {
TreeNode::new(id)
}
#[deprecated(
since = "0.4.0",
note = "use imgui::CollapsingHeader::new(...), and build() instead"
)]
pub fn collapsing_header<'a>(&self, label: &'a ImStr) -> CollapsingHeader<'a> {
CollapsingHeader::new(label)
}
}