Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Aug 13, 2023
1 parent fe799e7 commit 5fc17c7
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions lib/sinon/sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,23 +158,7 @@ function Sandbox() {
}
}

forEach(collection, function (fake) {
if (typeof fake === "function") {
privateResetHistory(fake);
return;
}

const methods = [];
if (fake.get) {
push(methods, fake.get);
}

if (fake.set) {
push(methods, fake.set);
}

forEach(methods, privateResetHistory);
});
forEach(collection, privateResetHistory);
};

sandbox.restore = function restore() {
Expand Down

0 comments on commit 5fc17c7

Please sign in to comment.