summaryrefslogtreecommitdiff
path: root/compiler/main/Annotations.hs
diff options
context:
space:
mode:
authorBrian Foley <bpfoley@google.com>2020-03-13 22:34:15 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-03-15 03:58:18 -0400
commitb4774598e6bd060b1b4230b11b734ca40022980d (patch)
tree9b28fdfa3aaa36a41ebc711efa795005953dc93d /compiler/main/Annotations.hs
parentd30aeb4b38381758025bc1002eb2135ad6bc58b8 (diff)
downloadhaskell-b4774598e6bd060b1b4230b11b734ca40022980d.tar.gz
Remove some dead code
From the notes.ghc.drop list found using weeder in #17713
Diffstat (limited to 'compiler/main/Annotations.hs')
-rw-r--r--compiler/main/Annotations.hs6
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/main/Annotations.hs b/compiler/main/Annotations.hs
index c282217d33..3c4340e900 100644
--- a/compiler/main/Annotations.hs
+++ b/compiler/main/Annotations.hs
@@ -9,7 +9,6 @@ module Annotations (
-- * Main Annotation data types
Annotation(..), AnnPayload,
AnnTarget(..), CoreAnnTarget,
- getAnnTargetName_maybe,
-- * AnnEnv for collecting and querying Annotations
AnnEnv,
@@ -57,11 +56,6 @@ data AnnTarget name
-- | The kind of annotation target found in the middle end of the compiler
type CoreAnnTarget = AnnTarget Name
--- | Get the 'name' of an annotation target if it exists.
-getAnnTargetName_maybe :: AnnTarget name -> Maybe name
-getAnnTargetName_maybe (NamedTarget nm) = Just nm
-getAnnTargetName_maybe _ = Nothing
-
instance Outputable name => Outputable (AnnTarget name) where
ppr (NamedTarget nm) = text "Named target" <+> ppr nm
ppr (ModuleTarget mod) = text "Module target" <+> ppr mod