summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2023-05-11 11:23:52 +0300
committerGitHub <noreply@github.com>2023-05-11 10:23:52 +0200
commit02be212daee78e3fca9f6b9524c4f3b221e552f3 (patch)
tree72ae4923ab997d476864d971cd5589143ed71dc8 /tools
parent3a08e2e6ace20f086ba24360c7139852a75b93b2 (diff)
downloadNim-02be212daee78e3fca9f6b9524c4f3b221e552f3.tar.gz
clean up SOME pending/xxx/issue link comments (#21826)
* clean up SOME pending/xxx/issue link comments

* great
Diffstat (limited to 'tools')
-rw-r--r--tools/kochdocs.nim11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/kochdocs.nim b/tools/kochdocs.nim
index bab2de1e4..60d4bc673 100644
--- a/tools/kochdocs.nim
+++ b/tools/kochdocs.nim
@@ -1,6 +1,6 @@
 ## Part of 'koch' responsible for the documentation generation.
 
-import std/[os, strutils, osproc, sets, pathnorm, sequtils]
+import std/[os, strutils, osproc, sets, pathnorm, sequtils, pegs]
 
 import officialpackages
 export exec
@@ -8,9 +8,6 @@ export exec
 when defined(nimPreviewSlimSystem):
   import std/assertions
 
-# XXX: Remove this feature check once the csources supports it.
-when defined(nimHasCastPragmaBlocks):
-  import std/pegs
 from std/private/globs import nativeToUnixPath, walkDirRecFilter, PathEntry
 import "../compiler/nimpaths"
 
@@ -373,9 +370,7 @@ proc buildDocs*(args: string, localOnly = false, localOutDir = "") =
   if not localOnly:
     buildDocsDir(args, webUploadOutput / NimVersion)
 
-    # XXX: Remove this feature check once the csources supports it.
-    when defined(nimHasCastPragmaBlocks):
-      let gaFilter = peg"@( y'--doc.googleAnalytics:' @(\s / $) )"
-      args = args.replace(gaFilter)
+    let gaFilter = peg"@( y'--doc.googleAnalytics:' @(\s / $) )"
+    args = args.replace(gaFilter)
 
   buildDocsDir(args, localOutDir)