Skip to content

Commit 69ea21a

Browse files
committed
Remove unused CommonMark wrappers for now.
1 parent cd61646 commit 69ea21a

40 files changed

+0
-3054
lines changed

.gitmodules

-3
This file was deleted.

Documentation/Development.md

-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
# Developing `swift-format`
22

3-
## Check Out the Submodules
4-
5-
The `CCommonMark` target is a Git submodule that pulls the C code in
6-
[apple/swift-cmark](https://github.com/apple/swift-cmark) into this
7-
project.
8-
9-
After you clone this repository, remember to run the following commands
10-
to make sure those sources are available to the compiler:
11-
12-
```shell
13-
git submodule init
14-
git submodule update
15-
```
16-
173
## Command Line Options for Debugging
184

195
`swift-format` provides some hidden command line options to facilitate

Package.swift

-12
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@ let package = Package(
2424
.package(url: "https://github.com/apple/swift-syntax", .revision("xcode11-beta1")),
2525
],
2626
targets: [
27-
.target(
28-
name: "CCommonMark",
29-
exclude: [
30-
"cmark/api_test",
31-
// We must exclude main.c or SwiftPM will treat this target as an executable target instead
32-
// of a library, and we won't be able to import it from the CommonMark Swift module.
33-
"cmark/src/main.c",
34-
"cmark/test",
35-
]
36-
),
37-
.target(name: "CommonMark", dependencies: ["CCommonMark"]),
3827
.target(
3928
name: "SwiftFormat",
4029
dependencies: [
@@ -74,7 +63,6 @@ let package = Package(
7463
"SwiftSyntax",
7564
]
7665
),
77-
.testTarget(name: "CommonMarkTests", dependencies: ["CommonMark"]),
7866
.testTarget(
7967
name: "SwiftFormatRulesTests",
8068
dependencies: [

Sources/CCommonMark/cmark

-1
This file was deleted.

Sources/CCommonMark/include/README.md

-3
This file was deleted.

Sources/CCommonMark/include/cmark_export.h

-18
This file was deleted.

Sources/CCommonMark/include/cmark_version.h

-19
This file was deleted.

Sources/CCommonMark/include/config.h

-37
This file was deleted.

Sources/CCommonMark/include/module.modulemap

-4
This file was deleted.

Sources/CommonMark/BlockContent.swift

-21
This file was deleted.

Sources/CommonMark/BlockQuoteNode.swift

-50
This file was deleted.

0 commit comments

Comments
 (0)