Skip to content

Commit

Permalink
Replace AnyCurrency, CurrencyProtocol with new Currency implementation
Browse files Browse the repository at this point in the history
Motivation:

The new implementation has been proven to work, and the old implementation is ready to be replaced.

Modifications:

- Add: Usage examples of Currency as an existential
- Change: ISO Currency type codegen to drop `_New_` prefix on new `Currency` conformances
- Remove: `AnyCurrency`, `CurrencyProtocol` protocols and the codegen conformances
- Remove: Unused `Decimal` extensions

Result:

The new `Currency` implementation is now the canonical representation in the library.
  • Loading branch information
Mordil committed Dec 27, 2024
1 parent b9f50ac commit 1ce803c
Show file tree
Hide file tree
Showing 16 changed files with 153 additions and 1,187 deletions.
99 changes: 0 additions & 99 deletions Sources/Currency/AnyCurrency+Algorithms.swift

This file was deleted.

75 changes: 0 additions & 75 deletions Sources/Currency/AnyCurrency+Sequence.swift

This file was deleted.

Loading

0 comments on commit 1ce803c

Please sign in to comment.