ffi: Eliminate squeek_button and squeek_row

This commit is contained in:
Dorota Czaplejewicz
2020-12-04 15:34:31 +00:00
parent 9522d4e302
commit c6cc58fd8e
5 changed files with 1 additions and 30 deletions

View File

@ -41,7 +41,7 @@ pub mod c {
use super::*;
use gtk_sys;
use std::os::raw::{ c_char, c_void };
use std::os::raw::c_void;
use std::ops::{ Add, Sub };
@ -161,13 +161,6 @@ pub mod c {
// The following defined in Rust. TODO: wrap naked pointers to Rust data inside RefCells to prevent multiple writers
#[no_mangle]
pub extern "C"
fn squeek_button_print(button: *const ::layout::Button) {
let button = unsafe { &*button };
println!("{:?}", button);
}
/// Positions the layout contents within the available space.
/// The origin of the transformation is the point inside the margins.
#[no_mangle]