Skip to content

Commit

Permalink
tests, visual: remove obsolete @[markused] attributes (fixed via V'…
Browse files Browse the repository at this point in the history
…s `-skip-unused` per-default)
  • Loading branch information
larpon committed Jan 1, 2025
1 parent 881dfea commit cee4b5f
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions tests/visual/circle_looks_ok.v
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ mut:
a_r &shy.Animator[f32] = shy.null
}

@[markused]
pub fn (mut a App) init() ! {
a.ExampleApp.init()!
a.a_r = a.shy.new_animator[f32](
Expand All @@ -36,7 +35,6 @@ pub fn (mut a App) init() ! {
}
}

@[markused]
pub fn (mut a App) frame(dt f64) {
a.quick.circle(
x: (shy.half * a.window.width)
Expand Down
2 changes: 0 additions & 2 deletions tests/visual/easy_mixed_drawing.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ struct App {

const image_path = 'images/shy.png'

@[markused]
pub fn (mut a App) init() ! {
a.TestApp.init()!

Expand All @@ -27,7 +26,6 @@ pub fn (mut a App) init() ! {
})!
}

@[markused]
pub fn (mut a App) frame(dt f64) {
win_size := a.window.size()
win_w := f32(win_size.width)
Expand Down
4 changes: 0 additions & 4 deletions tests/visual/image_fill_modes.v
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ mut:
image string = '64x128'
}

@[markused]
pub fn (a App) asset_fill_mode(path string, fill_mode shy.ImageFillMode) shy.AssetSource {
return match fill_mode {
.tile {
Expand All @@ -61,7 +60,6 @@ pub fn (a App) asset_fill_mode(path string, fill_mode shy.ImageFillMode) shy.Ass
}
}

@[markused]
pub fn (mut a App) init() ! {
a.TestApp.init()!

Expand All @@ -85,7 +83,6 @@ pub fn (mut a App) init() ! {
}
}

@[markused]
pub fn (mut a App) frame(dt f64) {
a.live_frame(dt)
}
Expand Down Expand Up @@ -179,7 +176,6 @@ FillMode (left/right): ${a.fill_mode}'
)
}

@[markused]
pub fn (mut a App) event(e shy.Event) {
a.TestApp.event(e)
match e {
Expand Down
2 changes: 0 additions & 2 deletions tests/visual/image_regions.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ struct App {
embed.ExampleApp
}

@[markused]
pub fn (mut a App) init() ! {
a.ExampleApp.init()!

Expand All @@ -25,7 +24,6 @@ pub fn (mut a App) init() ! {
})!
}

@[markused]
pub fn (mut a App) frame(dt f64) {
a.live_frame(dt)
}
Expand Down
1 change: 0 additions & 1 deletion tests/visual/pixel-perfect_rectangles.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ struct App {
embed.TestApp
}

@[markused]
pub fn (mut a App) frame(dt f64) {
a.TestApp.frame(dt)
canvas := a.window.canvas()
Expand Down
3 changes: 0 additions & 3 deletions tests/visual/rectangle.v
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ mut:
dim_index u16 = 1 // index of "128" in dimensions
}

@[markused]
pub fn (mut a App) init() ! {
a.TestApp.init()!
}

@[markused]
pub fn (mut a App) frame(dt f64) {
a.live_frame(dt)
}
Expand Down Expand Up @@ -122,7 +120,6 @@ Dimensions ${a.dimension}x${a.dimension}'
)
}

@[markused]
pub fn (mut a App) event(e shy.Event) {
a.TestApp.event(e)
match e {
Expand Down
3 changes: 0 additions & 3 deletions tests/visual/rectangle_rounded.v
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ mut:
dim_index u16 = 2 // index of "256" in dimensions
}

@[markused]
pub fn (mut a App) init() ! {
a.TestApp.init()!
}

@[markused]
pub fn (mut a App) frame(dt f64) {
a.live_frame(dt)
}
Expand Down Expand Up @@ -127,7 +125,6 @@ Dimensions ${a.dimension}x${a.dimension}'
)
}

@[markused]
pub fn (mut a App) event(e shy.Event) {
a.TestApp.event(e)
match e {
Expand Down
3 changes: 0 additions & 3 deletions tests/visual/triangles.v
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ mut:
origin shy.Anchor = .center
}

@[markused]
pub fn (mut a App) init() ! {
a.ExampleApp.init()!

Expand All @@ -43,7 +42,6 @@ pub fn (mut a App) init() ! {
}
}

@[markused]
pub fn (mut a App) frame(dt f64) {
center := shy.vec2((shy.half * a.canvas().width), (shy.half * a.canvas().height))
// center := shy.vec2(f32(200),200)
Expand Down Expand Up @@ -137,7 +135,6 @@ Origin: ${a.origin}'
)
}

@[markused]
pub fn (mut a App) event(e shy.Event) {
a.ExampleApp.event(e)
match e {
Expand Down

0 comments on commit cee4b5f

Please sign in to comment.