1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vlib: remove many deprecated functions (#10972)

This commit is contained in:
shadow
2021-07-28 02:22:19 -04:00
committed by GitHub
parent 9f4431544d
commit 66bc8bc0cb
26 changed files with 1 additions and 1785 deletions

View File

@@ -140,15 +140,6 @@ pub fn tos5(s &char) string {
return unsafe { tos3(s) }
}
[deprecated: 'tos_lit has been deprecated, use _SLIT instead']
pub fn tos_lit(s &char) string {
return string{
str: &byte(s)
len: unsafe { C.strlen(s) }
is_lit: 1
}
}
// vstring converts a C style string to a V string. NB: the string data is reused, NOT copied.
// strings returned from this function will be normal V strings beside that (i.e. they would be
// freed by V's -autofree mechanism, when they are no longer used).