mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
cleanup
This commit is contained in:
parent
5a62359a5f
commit
205f55be2e
1 changed files with 0 additions and 8 deletions
|
@ -813,10 +813,6 @@ pub fn strConcatC(result_in_place: InPlace, arg1: RocStr, arg2: RocStr) callconv
|
||||||
}
|
}
|
||||||
|
|
||||||
fn strConcat(allocator: *Allocator, result_in_place: InPlace, arg1: RocStr, arg2: RocStr) RocStr {
|
fn strConcat(allocator: *Allocator, result_in_place: InPlace, arg1: RocStr, arg2: RocStr) RocStr {
|
||||||
return strConcatHelp(allocator, result_in_place, arg1, arg2);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn strConcatHelp(allocator: *Allocator, result_in_place: InPlace, arg1: RocStr, arg2: RocStr) RocStr {
|
|
||||||
if (arg1.isEmpty()) {
|
if (arg1.isEmpty()) {
|
||||||
return RocStr.clone(allocator, result_in_place, arg2);
|
return RocStr.clone(allocator, result_in_place, arg2);
|
||||||
} else if (arg2.isEmpty()) {
|
} else if (arg2.isEmpty()) {
|
||||||
|
@ -875,10 +871,6 @@ pub fn strJoinWithC(list: RocListStr, separator: RocStr) callconv(.C) RocStr {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn strJoinWith(allocator: *Allocator, list: RocListStr, separator: RocStr) RocStr {
|
fn strJoinWith(allocator: *Allocator, list: RocListStr, separator: RocStr) RocStr {
|
||||||
return strJoinWithHelp(allocator, list, separator);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn strJoinWithHelp(allocator: *Allocator, list: RocListStr, separator: RocStr) RocStr {
|
|
||||||
const len = list.list_length;
|
const len = list.list_length;
|
||||||
|
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue