qml: remove Helpers.get method

This commit is contained in:
Pierre Lamot 2024-04-17 15:40:40 +02:00 committed by Steve Lhomme
parent ee771cd6c6
commit d78eb68e14
1 changed files with 0 additions and 8 deletions

View File

@ -26,14 +26,6 @@ function isValidInstanceOf(object, type) {
return (!!object && (object instanceof type))
}
// Returns the value associated with the key.
// If the hash contains no item with the key,
// or the value is invalid, returns defaultValue
function get(dict, key, defaultValue) {
var v = typeof dict !== "undefined" && !!dict ? dict[key] : undefined
return typeof v === "undefined" ? defaultValue : v
}
// NOTE: This allows us to force another 'reason' even when the item has activeFocus.
function enforceFocus(item, reason) {
if (item.activeFocus && item.focusReason === reason)