Skip to content

Commit

Permalink
Remove unused field in Mode type.
Browse files Browse the repository at this point in the history
Exercise for the reader: try to find all unused fields in our codebase.
  • Loading branch information
ethercrow committed Aug 24, 2014
1 parent e02be2f commit 0f5db80
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions yi/src/library/Yi/Buffer/Misc.hs
Expand Up @@ -128,7 +128,6 @@ module Yi.Buffer.Misc
, modeToggleCommentSelectionA
, modeGetStrokesA
, modeGetAnnotationsA
, modePrintTreeA
, modeOnLoadA
, modeModeLineA
, AnyMode (..)
Expand Down Expand Up @@ -401,7 +400,6 @@ data Mode syntax = Mode
modeToggleCommentSelection :: YiM (),
modeGetStrokes :: syntax -> Point -> Point -> Point -> [Stroke], -- ^ Strokes that should be applied when displaying a syntax element
modeGetAnnotations :: syntax -> Point -> [Span String],
modePrintTree :: syntax -> BufferM (),
-- should this be an Action instead?
modeOnLoad :: BufferM (), -- ^ An action that is to be executed when this mode is set
modeModeLine :: [String] -> BufferM String -- ^ buffer-local modeline formatting method
Expand Down Expand Up @@ -661,7 +659,6 @@ emptyMode = Mode
modeToggleCommentSelection = promptCommentString,
modeGetStrokes = \_ _ _ _ -> [],
modeGetAnnotations = \_ _ -> [],
modePrintTree = \_ -> return (),
modeOnLoad = return (),
modeModeLine = defaultModeLine
}
Expand Down

0 comments on commit 0f5db80

Please sign in to comment.