Skip to content

Commit 7434080

Browse files
committed
rustc: remove some dead functions
1 parent 69a237e commit 7434080

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/librustc/middle/trans/common.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -788,15 +788,6 @@ pub fn C_estr_slice(cx: &mut CrateContext, s: @str) -> ValueRef {
788788
}
789789
}
790790

791-
// Returns a Plain Old LLVM String:
792-
pub fn C_postr(s: &str) -> ValueRef {
793-
unsafe {
794-
do s.as_c_str |buf| {
795-
llvm::LLVMConstStringInContext(base::task_llcx(), buf, s.len() as c_uint, False)
796-
}
797-
}
798-
}
799-
800791
pub fn C_zero_byte_arr(size: uint) -> ValueRef {
801792
unsafe {
802793
let mut i = 0u;
@@ -844,14 +835,6 @@ pub fn C_bytes(bytes: &[u8]) -> ValueRef {
844835
}
845836
}
846837

847-
pub fn C_bytes_plus_null(bytes: &[u8]) -> ValueRef {
848-
unsafe {
849-
return llvm::LLVMConstStringInContext(base::task_llcx(),
850-
cast::transmute(vec::raw::to_ptr(bytes)),
851-
bytes.len() as c_uint, False);
852-
}
853-
}
854-
855838
pub fn get_param(fndecl: ValueRef, param: uint) -> ValueRef {
856839
unsafe {
857840
llvm::LLVMGetParam(fndecl, param as c_uint)

0 commit comments

Comments
 (0)