Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,247
Issues
4,247
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
393
Merge Requests
393
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
7a02599a
Commit
7a02599a
authored
May 07, 2020
by
Sylvain Henry
Committed by
Marge Bot
Jun 13, 2020
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code
parent
2517a51c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
compiler/GHC/Unit/State.hs
compiler/GHC/Unit/State.hs
+0
-23
No files found.
compiler/GHC/Unit/State.hs
View file @
7a02599a
...
...
@@ -401,16 +401,6 @@ lookupUnit' True m@(UnitInfoMap pkg_map _) uid = case uid of
VirtUnit
i
->
fmap
(
renamePackage
m
(
instUnitInsts
i
))
(
lookupUDFM
pkg_map
(
instUnitInstanceOf
i
))
{-
-- | Find the indefinite package for a given 'IndefUnitId'.
-- The way this works is just by fiat'ing that every indefinite package's
-- unit key is precisely its component ID; and that they share uniques.
lookupIndefUnitId :: PackageState -> IndefUnitId -> Maybe UnitInfo
lookupIndefUnitId pkgstate (IndefUnitId cid_fs) = lookupUDFM pkg_map cid_fs
where
UnitInfoMap pkg_map = unitInfoMap pkgstate
-}
-- | Find the package we know about with the given package name (e.g. @foo@), if any
-- (NB: there might be a locally defined unit name which overrides this)
lookupPackageName
::
PackageState
->
PackageName
->
Maybe
IndefUnitId
...
...
@@ -1021,19 +1011,6 @@ findWiredInPackages dflags prec_map pkgs vis_map = do
wired_in_pkgs
=
catMaybes
mb_wired_in_pkgs
pkgstate
=
pkgState
dflags
-- this is old: we used to assume that if there were
-- multiple versions of wired-in packages installed that
-- they were mutually exclusive. Now we're assuming that
-- you have one "main" version of each wired-in package
-- (the latest version), and the others are backward-compat
-- wrappers that depend on this one. e.g. base-4.0 is the
-- latest, base-3.0 is a compat wrapper depending on base-4.0.
{-
deleteOtherWiredInPackages pkgs = filterOut bad pkgs
where bad p = any (p `matches`) wired_in_unitids
&& package p `notElem` map fst wired_in_ids
-}
wiredInMap
::
Map
WiredUnitId
WiredUnitId
wiredInMap
=
Map
.
fromList
[
(
key
,
Definite
(
stringToUnitId
wiredInUnitId
))
...
...
Ben Gamari
🐢
@bgamari
mentioned in merge request
!3237 (closed)
·
Jun 13, 2020
mentioned in merge request
!3237 (closed)
mentioned in merge request !3237
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment