From 5bf5ec2dd705ac1be71ce6bb080044bbbba662c3 Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Mon, 15 Jul 2024 13:43:27 -0400 Subject: [PATCH] Fix for bad squash / merge --- modules/lo_event/lo_event/util.js | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/modules/lo_event/lo_event/util.js b/modules/lo_event/lo_event/util.js index ef124b2d..d5626b1a 100644 --- a/modules/lo_event/lo_event/util.js +++ b/modules/lo_event/lo_event/util.js @@ -11,7 +11,7 @@ import { storage } from './browserStorage.js'; * console.log(copied) * // expected output: { a: 1, b: 2 } */ -function copyFields (source, fields) { +export function copyFields (source, fields) { const result = {}; if (source) { fields.forEach(field => { @@ -463,28 +463,6 @@ export function treeget(tree, key) { return subtree; } -/** - * Helper function for copying specific field values - * from a given source. This is called to collect browser - * information if available. - * - * Example usage: - * const copied = copyFields({ a: 1, b: 2, c: 3 }, ['a', 'b']) - * console.log(copied) - * // expected output: { a: 1, b: 2 } - * - * from util.js in lo_event. - */ -export function copyFields (source, fields) { - const result = {}; - if (source) { - fields.forEach(field => { - result[field] = source[field]; - }); - } - return result; -} - /** * Takes a number of seconds and converts it into a human-friendly time string in the format HH:MM:SS. *