mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: remove methods deprecated before 2022-07-22 (#18944)
This commit is contained in:
@@ -354,22 +354,6 @@ pub fn (s string) trim_string_right(str string) string {
|
||||
return s.clone()
|
||||
}
|
||||
|
||||
// trim_prefix strips `str` from the start of the string.
|
||||
// Example: assert 'WorldHello V'.trim_prefix('World') == 'Hello V'
|
||||
[deprecated: 'use s.trim_string_left(x) instead']
|
||||
[deprecated_after: '2022-01-19']
|
||||
pub fn (s string) trim_prefix(str string) string {
|
||||
return s.trim_string_left(str)
|
||||
}
|
||||
|
||||
// trim_suffix strips `str` from the end of the string.
|
||||
// Example: assert 'Hello VWorld'.trim_suffix('World') == 'Hello V'
|
||||
[deprecated: 'use s.trim_string_right(x) instead']
|
||||
[deprecated_after: '2022-01-19']
|
||||
pub fn (s string) trim_suffix(str string) string {
|
||||
return s.trim_string_right(str)
|
||||
}
|
||||
|
||||
// compare_strings returns `-1` if `a < b`, `1` if `a > b` else `0`.
|
||||
pub fn compare_strings(a &string, b &string) int {
|
||||
if a < b {
|
||||
|
Reference in New Issue
Block a user