From 0503ea12c3bfa33a829b9c9c309fac471663e185 Mon Sep 17 00:00:00 2001 From: "Brian J. Burg" Date: Fri, 19 Oct 2012 13:28:17 -0700 Subject: [PATCH] Remove CG from rust-cocoa. It's now in rust-core-graphics. --- cg.rs | 20 -------------------- cocoa.rc | 2 +- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 cg.rs diff --git a/cg.rs b/cg.rs deleted file mode 100644 index 2495b60..0000000 --- a/cg.rs +++ /dev/null @@ -1,20 +0,0 @@ -// FIXME: Should be bindgenned - -use libc::{c_void, c_char, size_t}; - -#[nolink] -pub extern mod cg { - pub fn CGDataProviderCreateWithFilename(filename: *c_char) -> CGDataProviderRef; - pub fn CGDataProviderCreateWithData(info: *c_void, - data: *c_void, - size: size_t, - releaseData: CGDataProviderReleaseDataCallback - ) -> CGDataProviderRef; - pub fn CGDataProviderRelease(provider: CGDataProviderRef); - pub fn CGFontCreateWithDataProvider(provider: CGDataProviderRef) -> CGFontRef; - pub fn CGFontRelease(font: CGFontRef); -} - -pub type CGFontRef = *c_void; -pub type CGDataProviderRef = *c_void; -pub type CGDataProviderReleaseDataCallback = *c_void; diff --git a/cocoa.rc b/cocoa.rc index 072e5f1..7ddf26f 100644 --- a/cocoa.rc +++ b/cocoa.rc @@ -12,4 +12,4 @@ extern mod std; pub mod appkit; pub mod base; pub mod foundation; -pub mod cg; +