mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib: remove functions and fields, deprecated before 2023-03-20
* remove []int.reduce in favour of arrays.fold * remove datatypes.Set.equal in favour of datatypes.Set.== * remove datatypes.Set.difference in favour of datatypes.Set.- * remove gg.Context.set_cfg in favour of gg.Context.set_text_cfg * remove gg.Context.timage_pip in favour of gg.Context.pipeline.alpha * remove os.is_writable_folder in favour of os.ensure_folder_is_writable Discovered with `v run cmd/tools/show_ancient_deprecations.v 180`
This commit is contained in:
parent
255e72456b
commit
7ffa8c13bf
6 changed files with 4 additions and 47 deletions
|
@ -147,12 +147,6 @@ pub fn (ctx &Context) set_text_cfg(cfg gx.TextCfg) {
|
|||
ctx.ft.fons.vert_metrics(&ascender, &descender, &lh)
|
||||
}
|
||||
|
||||
// set_cfg sets the current text configuration
|
||||
[deprecated: 'use set_text_cfg() instead']
|
||||
pub fn (ctx &Context) set_cfg(cfg gx.TextCfg) {
|
||||
ctx.set_text_cfg(cfg)
|
||||
}
|
||||
|
||||
// draw_text draws the string in `text_` starting at top-left position `x`,`y`.
|
||||
// Text settings can be provided with `cfg`.
|
||||
pub fn (ctx &Context) draw_text(x int, y int, text_ string, cfg gx.TextCfg) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue