Remove str::connect
This commit is contained in:
parent
369be5c8df
commit
21693db2a7
@ -43,7 +43,6 @@ export push_byte;
|
||||
export unshift_byte;
|
||||
export split;
|
||||
export concat;
|
||||
export connect;
|
||||
export connect_ivec;
|
||||
export to_upper;
|
||||
export safe_slice;
|
||||
@ -455,16 +454,6 @@ fn concat(v: &[str]) -> str {
|
||||
ret s;
|
||||
}
|
||||
|
||||
fn connect(v: vec[str], sep: str) -> str {
|
||||
let s: str = "";
|
||||
let first: bool = true;
|
||||
for ss: str in v {
|
||||
if first { first = false; } else { s += sep; }
|
||||
s += ss;
|
||||
}
|
||||
ret s;
|
||||
}
|
||||
|
||||
fn connect_ivec(v: &[str], sep: str) -> str {
|
||||
let s: str = "";
|
||||
let first: bool = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user