mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-23 12:29:36 +08:00
Remove unused instance Ord Replacement (fixes #1829)
This commit is contained in:
@@ -256,9 +256,6 @@ data Replacement = Replacement {
|
|||||||
data InsertionPoint = InsertBefore | InsertAfter
|
data InsertionPoint = InsertBefore | InsertAfter
|
||||||
deriving (Show, Eq, Generic, NFData)
|
deriving (Show, Eq, Generic, NFData)
|
||||||
|
|
||||||
instance Ord Replacement where
|
|
||||||
compare r1 r2 = (repStartPos r1) `compare` (repStartPos r2)
|
|
||||||
|
|
||||||
newReplacement = Replacement {
|
newReplacement = Replacement {
|
||||||
repStartPos = newPosition,
|
repStartPos = newPosition,
|
||||||
repEndPos = newPosition,
|
repEndPos = newPosition,
|
||||||
|
Reference in New Issue
Block a user