Skip to content

Commit

Permalink
Remove public documentation from window::cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
skejeton committed Jul 7, 2024
1 parent 4582a59 commit e5dc79a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
13 changes: 0 additions & 13 deletions src/staembed.c
Original file line number Diff line number Diff line change
Expand Up @@ -1705,11 +1705,7 @@ const char *th_em_modulesrc[] = {
"\tsetViewport({width, height})\n"
"}\n"
"\n"
"//~~fn cycle\n"
"// Cycle needs to be called every cycle for the window to work. If the window\n"
"// was closed, it returns false.\n"
"fn cycle(delta: real) {\n"
"//~~\n"
"\tumth_window_set_viewport(wp)\n"
"\n"
"\tth::delta = trunc(delta*1000.0)\n"
Expand Down Expand Up @@ -5283,15 +5279,6 @@ const char *th_em_moduledocs[] = {
"\n"
"---------\n"
"\n"
"fn cycle\n"
"\n"
"fn cycle(delta: real) {\n"
"\n"
"Cycle needs to be called every cycle for the window to work. If the window\n"
"was closed, it returns false.\n"
"\n"
"---------\n"
"\n"
"fn setFullscreen\n"
"\n"
"fn setFullscreen*(fullscreen: bool) {\n"
Expand Down
4 changes: 0 additions & 4 deletions umka/window.um
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,7 @@ fn setup*(title: str = "tophat game", width: int = 400, height: int32 = 400) {
setViewport({width, height})
}

//~~fn cycle
// Cycle needs to be called every cycle for the window to work. If the window
// was closed, it returns false.
fn cycle(delta: real) {
//~~
umth_window_set_viewport(wp)

th::delta = trunc(delta*1000.0)
Expand Down

0 comments on commit e5dc79a

Please sign in to comment.