Skip to content

Commit

Permalink
remove unneeded nub.
Browse files Browse the repository at this point in the history
  • Loading branch information
julialongtin committed Dec 28, 2023
1 parent 36b0ae0 commit 8e12b42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Graphics/Slicer/Math/Skeleton/Definitions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import Prelude (Eq, Show, Bool(True, False), Ordering(LT,GT), any, concatMap, el

import qualified Prelude as PL (head, last)

import Data.List (filter, length, nub, sortBy)
import Data.List (filter, length, sortBy)

import Data.List.NonEmpty (NonEmpty)

Expand Down Expand Up @@ -192,8 +192,8 @@ cPPointAndErrOfINode iNode
-- | Get all of the PLines that come from, or exit an iNode.
allPLinesOfINode :: INode -> Slist (ProjectiveLine, PLine2Err)
allPLinesOfINode iNode@(INode firstPLine secondPLine (Slist morePLines _) _)
| hasArc iNode = slist $ nub $ outAndErrOf iNode : firstPLine : secondPLine : morePLines
| otherwise = slist $ nub $ firstPLine : secondPLine : morePLines
| hasArc iNode = slist $ outAndErrOf iNode : firstPLine : secondPLine : morePLines
| otherwise = slist $ firstPLine : secondPLine : morePLines

-- | Produce a list of the inputs to a given INode.
insOf :: INode -> [(ProjectiveLine, PLine2Err)]
Expand Down

0 comments on commit 8e12b42

Please sign in to comment.