Skip to content

Commit e077064

Browse files
committed
fix: Remove unused utility function
1 parent cf9f506 commit e077064

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/utils.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -463,24 +463,6 @@ export function mergeWithAccessors(
463463
return dest
464464
}
465465

466-
export function cloneWithAccessors(obj) {
467-
const clone = {}
468-
469-
const props = Object.getOwnPropertyNames(obj)
470-
props.forEach(key => {
471-
const desc = Object.getOwnPropertyDescriptor(obj, key)
472-
473-
// Do not allow sharing of deeply-nested objects between instances
474-
if (_isPlainObject(desc.value)) {
475-
desc.value = fastCopy(desc.value)
476-
}
477-
478-
Object.defineProperty(clone, key, desc)
479-
})
480-
481-
return clone
482-
}
483-
484466
export function checkNamespace(namespace, item, debug) {
485467
if (!namespace && debug) {
486468
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)