@@ -18,7 +18,6 @@ module Language.PureScript.CodeGen.JS.Optimizer.Inliner (
1818 inlineValues,
1919 inlineOperator,
2020 inlineCommonOperators,
21− inlineAppliedVars,
2221 inlineArrComposition,
2322 etaConvert,
2423 unThunk,
@@ -241,13 +240,6 @@ inlineCommonOperators = applyAll $
241240 go m acc (JSApp lhs [arg]) = go (m - 1) (arg : acc) lhs
242241 go _ _ _ = Nothing
243242
244−inlineAppliedVars :: JS -> JS
245−inlineAppliedVars = everywhereOnJS convert
246− where
247− convert :: JS -> JS
248− convert (JSApp (JSFunction Nothing [a] (JSBlock [JSReturn b])) [JSVar x]) = replaceIdent a (JSVar x) b
249− convert other = other
250−
251243-- (f <<< g $ x) = f (g x)
252244-- (f <<< g) = \x -> f (g x)
253245inlineArrComposition :: (Applicative m, MonadSupply m) => JS -> m JS