summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-11-16 13:52:02 -0800
committerGitHub <noreply@github.com>2020-11-16 22:52:02 +0100
commit61352d5a203e76e3334b21766bdbd4ebc71c300a (patch)
treeb7ffa588f7cb9584a57bd04e598e120989ceebf7 /compiler
parenta8858eb93ee666d669c272ec2ba1ade89e81177c (diff)
downloadNim-61352d5a203e76e3334b21766bdbd4ebc71c300a.tar.gz
remove unused and misleading FilenameOption.foShort (#15982)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/msgs.nim2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index be3dc5ec4..d0209db5d 100644
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -237,7 +237,6 @@ type FilenameOption* = enum
   foRelProject # relative to project path, e.g.: ../foo.nim
   foMagicSauce # magic sauce, shortest of (foAbs, foRelProject)
   foName # lastPathPart, e.g.: foo.nim
-  foShort # foName without extension, e.g.: foo
   foStacktrace # if optExcessiveStackTrace: foAbs else: foName
 
 proc toFilenameOption*(conf: ConfigRef, fileIdx: FileIndex, opt: FilenameOption): string =
@@ -255,7 +254,6 @@ proc toFilenameOption*(conf: ConfigRef, fileIdx: FileIndex, opt: FilenameOption)
              else:
                relPath
   of foName: result = toProjPath(conf, fileIdx).lastPathPart
-  of foShort: result = toFilename(conf, fileIdx)
   of foStacktrace:
     if optExcessiveStackTrace in conf.globalOptions:
       result = toFilenameOption(conf, fileIdx, foAbs)