Skip to content

Commit 4614d82

Browse files
committed
cleanup
1 parent 069f3ed commit 4614d82

File tree

1 file changed

+0
-6
lines changed
  • plugins/hls-semantic-tokens-plugin/src/Ide/Plugin/SemanticTokens

1 file changed

+0
-6
lines changed

plugins/hls-semantic-tokens-plugin/src/Ide/Plugin/SemanticTokens/Tokenize.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{-# LANGUAGE OverloadedRecordDot #-}
22
{-# LANGUAGE OverloadedStrings #-}
3-
{-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
4-
{-# HLINT ignore "Avoid restricted function" #-}
53

64
module Ide.Plugin.SemanticTokens.Tokenize (computeRangeHsSemanticTokenTypeList) where
75

@@ -47,8 +45,6 @@ cacheLookup lk idt@(Right n) = do
4745
return hsSemanticTy
4846
Just x -> return x
4947

50-
51-
5248
data PTokenState = PTokenState
5349
{
5450
rope :: !Rope -- the remains of rope we are working on
@@ -66,7 +62,6 @@ getSplitTokenText :: SplitResult -> Text
6662
getSplitTokenText (NoSplit (t, _)) = t
6763
getSplitTokenText (Split (t, _, _)) = t
6864

69-
7065
mkPTokenState :: VirtualFile -> PTokenState
7166
mkPTokenState vf =
7267
PTokenState
@@ -85,7 +80,6 @@ liftMaybeM p = do
8580
st <- get
8681
maybe (return mempty) (\(ans, st') -> put st' >> return ans) $ runStateT p st
8782

88-
8983
foldMapM :: (Monad m, Monoid b, Foldable t) => (a -> m b) -> t a -> m b
9084
foldMapM f ta = foldM (\b a -> mappend b <$> f a) mempty ta
9185

0 commit comments

Comments
 (0)