diff --git a/src/librustc/middle/trans/common.rs b/src/librustc/middle/trans/common.rs index 995cda92d9b..60c2bad4a65 100644 --- a/src/librustc/middle/trans/common.rs +++ b/src/librustc/middle/trans/common.rs @@ -788,15 +788,6 @@ pub fn C_estr_slice(cx: &mut CrateContext, s: @str) -> ValueRef { } } -// Returns a Plain Old LLVM String: -pub fn C_postr(s: &str) -> ValueRef { - unsafe { - do s.as_c_str |buf| { - llvm::LLVMConstStringInContext(base::task_llcx(), buf, s.len() as c_uint, False) - } - } -} - pub fn C_zero_byte_arr(size: uint) -> ValueRef { unsafe { let mut i = 0u; @@ -844,14 +835,6 @@ pub fn C_bytes(bytes: &[u8]) -> ValueRef { } } -pub fn C_bytes_plus_null(bytes: &[u8]) -> ValueRef { - unsafe { - return llvm::LLVMConstStringInContext(base::task_llcx(), - cast::transmute(vec::raw::to_ptr(bytes)), - bytes.len() as c_uint, False); - } -} - pub fn get_param(fndecl: ValueRef, param: uint) -> ValueRef { unsafe { llvm::LLVMGetParam(fndecl, param as c_uint)