         }
 
         refreshInsets(forKeyboardFrame: keyboardFrame)
-    }
-
-    func keyboardDidShow(_ notification: Notification) {
-        guard richTextView.isFirstResponder, !formatBarAnimatedPeek else {
-            return
-        }
-
-        let formatBar = richTextView.inputAccessoryView as? FormatBar
-        formatBar?.animateSlightPeekWhenOverflows()
-        formatBarAnimatedPeek = true
     }
 
     fileprivate func refreshInsets(forKeyboardFrame keyboardFrame: CGRect) {


    fileprivate var currentSelectedAttachment: ImageAttachment?

    fileprivate var formatBarAnimatedPeek = false

    var loadSampleHTML = false

    fileprivate var shortcodePreProcessors = [Processor]()

        let nc = NotificationCenter.default
        nc.removeObserver(self, name: .UIKeyboardWillShow, object: nil)
        nc.removeObserver(self, name: .UIKeyboardWillHide, object: nil)
    }


