settings: remove _get_{boolean|int|float|string}() APIs

They is really no needed with the new _get() API and the WpSpaJson API. In C,
users can use 'wp_spa_json_parse_{boolean|int|float|string}()' APIs to parse the
WpSpaJson. In Lua, users can just do 'Settings.get(setting, m):parse()'.
This commit is contained in:
Julian Bouzas
2022-08-18 13:11:34 -04:00
parent 535af7a33e
commit 2f1aece8b6
16 changed files with 163 additions and 301 deletions

View File

@@ -5,8 +5,8 @@
--
-- SPDX-License-Identifier: MIT
local move = Settings.get_boolean ("default-policy-move") or false
local follow = Settings.get_boolean ("default-policy-follow") or false
local move = Settings.get ("default-policy-move"):parse() or false
local follow = Settings.get ("default-policy-follow"):parse() or false
local self = {}
self.scanning = false