[5.x] Remove duplicate imports from gyb-generated MLDSA backend code (#458)

### Motivation

The `MLDSA_boring.swift` backend had a bunch of repeated import
statements. These exist in the gyb too.

### Modifications

- Remove duplicate import statements from `MLDSA_boring.swift.gyb`.
- Regenerate `MLDSA_boring.swift` from gyb.

### Result

- Duplicate imports removed from `MLDSA_boring.swift`.
- Aligns more closely with `MLKEM_boring.swift`, which didn't have this
problem it its code or gyb.
This commit is contained in:
Si Beaumont authored and GitHub committed 2026-08-11 15:30:28 +01:00
1 parent b3746b1441
commit 57782dc666
2 files changed
+6 -28

No files matched your search

@@ -12,24 +12,13 @@
//
//===----------------------------------------------------------------------===//
#if canImport(CryptoKit)
@_exported import CryptoKit
#else
#if hasFeature(SourceWarningControl)
@diagnose(ImplementationOnlyDeprecated, as: ignored) @_implementationOnly import CCryptoBoringSSL
#else
@_implementationOnly import CCryptoBoringSSL
#endif
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
// MARK: - Generated file, do NOT edit
// any edits of this file WILL be overwritten and thus discarded
// see section `gyb` in `README` for details.
#if canImport(CryptoKit)
@_exported import CryptoKit
#else
#if hasFeature(SourceWarningControl)
@diagnose(ImplementationOnlyDeprecated, as: ignored) @_implementationOnly import CCryptoBoringSSL
#else
@@ -12,24 +12,13 @@
//
//===----------------------------------------------------------------------===//
#if canImport(CryptoKit)
@_exported import CryptoKit
#else
#if hasFeature(SourceWarningControl)
@diagnose(ImplementationOnlyDeprecated, as: ignored) @_implementationOnly import CCryptoBoringSSL
#else
@_implementationOnly import CCryptoBoringSSL
#endif
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
// MARK: - Generated file, do NOT edit
// any edits of this file WILL be overwritten and thus discarded
// see section `gyb` in `README` for details.
#if canImport(CryptoKit)
@_exported import CryptoKit
#else
#if hasFeature(SourceWarningControl)
@diagnose(ImplementationOnlyDeprecated, as: ignored) @_implementationOnly import CCryptoBoringSSL
#else