diff options
author | Juan Carlos <juancarlospaco@gmail.com> | 2020-10-01 10:07:57 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 15:07:57 +0200 |
commit | 8f90ac6af1bafcba13208e5356098f5f3aaff7b8 (patch) | |
tree | 9d7fadf7b9c6f9ff29bb3906ebcf319a2d5cdb77 | |
parent | ab405c936e77a875199aa1ee0f99eddd3d5a0c10 (diff) | |
download | Nim-8f90ac6af1bafcba13208e5356098f5f3aaff7b8.tar.gz |
Clean out (#15448)
-rw-r--r-- | compiler/options.nim | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/options.nim b/compiler/options.nim index 226f13c73..efb0aa2da 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -628,17 +628,6 @@ proc setDefaultLibpath*(conf: ConfigRef) = proc canonicalizePath*(conf: ConfigRef; path: AbsoluteFile): AbsoluteFile = result = AbsoluteFile path.string.expandFilename -proc shortenDir*(conf: ConfigRef; dir: string): string {. - deprecated: "use 'relativeTo' instead".} = - ## returns the interesting part of a dir - var prefix = conf.projectPath.string & DirSep - if startsWith(dir, prefix): - return substr(dir, prefix.len) - prefix = getPrefixDir(conf).string & DirSep - if startsWith(dir, prefix): - return substr(dir, prefix.len) - result = dir - proc removeTrailingDirSep*(path: string): string = if (path.len > 0) and (path[^1] == DirSep): result = substr(path, 0, path.len - 2) |