     
     func clearButtonTapped(sender: UIButton) {
         lines.removeAll()
-    }
-    
-    func filterClearButtonTapped(sender: UIButton) {
-        textField.resignFirstResponder()
-        if textField.text != "" {
-            textField.text = nil
-            filterText = nil
-        }
-    }
-    
-    func textFieldShouldReturn(textField: UITextField) -> Bool {
-        textField.resignFirstResponder()
-        filterText = textField.text
-        return true
     }
     
     func exportButtonTapped(sender: UIButton) {

        }
    }
    
    private var filteredLines: [AELogLine] {
        guard let filter = filterText else { return lines }
        let filtered = lines.filter({ $0.description.containsString(filter) })
        return filtered
    }
    
    private var filterText: String? {
        didSet {
            if let text = filterText {
                let characterSet = NSCharacterSet.whitespaceAndNewlineCharacterSet()
                let emptyText = text.stringByTrimmingCharactersInSet(characterSet) == ""
                if !emptyText {
                    filterActive = true
                }
            } else {
                filterActive = false
            }
        }
    }
    
    private var filterActive = false {
        didSet {
            updateUI()
        }
    }

    private var opacity: CGFloat = 1.0 {

    
    // MARK: - Actions
    
    func settingsButtonTapped(sender: UIButton) {
        toggleControls()
    }
