aboutsummaryrefslogtreecommitdiff
path: root/html/pattern.html
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-01-31 21:05:47 +0000
committerBen Harris <bjh21@bjh21.me.uk>2023-01-31 23:25:05 +0000
commit789e11f8f802889904c7eb137d354877f647c88d (patch)
tree67b9e13a88fa00a0b78912a7a4a9d4816ff0b3dd /html/pattern.html
parentccd579e72ee8ea2de46786a6b296f37a0ecf5867 (diff)
downloadpuzzles-789e11f8f802889904c7eb137d354877f647c88d.zip
puzzles-789e11f8f802889904c7eb137d354877f647c88d.tar.gz
puzzles-789e11f8f802889904c7eb137d354877f647c88d.tar.bz2
puzzles-789e11f8f802889904c7eb137d354877f647c88d.tar.xz
Remove various unused game functions
If can_configure is false, then the game's configure() and custom_params() functions will never be called. If can_solve is false, solve() will never be called. If can_format_as_text_ever is false, can_format_as_text_now() and text_format() will never be called. If can_print is false, print_size() and print() will never be called. If is_timed is false, timing_state() will never be called. In each case, almost all puzzles provided a function nonetheless. I think this is because in Puzzles' early history there was no "game" structure, so the functions had to be present for linking to work. But now that everything indirects through the "game" structure, unused functions can be left unimplemented and the corresponding pointers set to NULL. So now where the flags mentioned above are false, the corresponding functions are omitted and the function pointers in the "game" structures are NULL.
Diffstat (limited to 'html/pattern.html')
0 files changed, 0 insertions, 0 deletions