Skip to content

Commit

Permalink
chore: remove unhelpful type and default declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Jun 9, 2023
1 parent c3c6694 commit 14ac202
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
7 changes: 1 addition & 6 deletions packages/zoe/src/contractFacet/reallocate.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ export const makeAllocationMap = transfers => {
updateAllocations(seat, [newIncr, decr]);
};

for (const [
fromSeat = undefined,
toSeat = undefined,
fromAmounts = undefined,
toAmounts = undefined,
] of transfers) {
for (const [fromSeat, toSeat, fromAmounts, toAmounts] of transfers) {
if (fromSeat) {
if (!fromAmounts) {
throw Fail`Transfer from ${fromSeat} must say how much`;
Expand Down
12 changes: 2 additions & 10 deletions packages/zoe/src/contractFacet/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,6 @@
* @returns {Amount<any>}
*/

/**
* @deprecated Use atomicRearrange instead
*
* @callback DeprecatedIncrementDecrementBy
* @param {AmountKeywordRecord} amountKeywordRecord
* @returns {AmountKeywordRecord}
*/

/**
* @typedef {object} ZCFSeat
* @property {(completion?: Completion) => void} exit
Expand All @@ -219,9 +211,9 @@
* @property {() => boolean} hasStagedAllocation
* Deprecated: Use atomicRearrange instead
* @property {(newAllocation: Allocation) => boolean} isOfferSafe
* @property {DeprecatedIncrementDecrementBy} incrementBy
* @property {(amountKeywordRecord: AmountKeywordRecord) => AmountKeywordRecord} incrementBy
* Deprecated: Use atomicRearrange instead
* @property {DeprecatedIncrementDecrementBy} decrementBy
* @property {(amountKeywordRecord: AmountKeywordRecord) => AmountKeywordRecord} decrementBy
* Deprecated: Use atomicRearrange instead
* @property {() => void} clear
* Deprecated: Use atomicRearrange instead
Expand Down

0 comments on commit 14ac202

Please sign in to comment.