From 98b31ff1feaed7b57a1dd43adcbf48eccd5542a4 Mon Sep 17 00:00:00 2001
From: ArthurSonzogni <sonzogniarthur@gmail.com>
Date: Sun, 11 Jun 2023 13:39:33 +0200
Subject: [PATCH] Remove ButtonOption::Arthur()

It was added by mistacke previously.
---
 include/ftxui/component/component_options.hpp |  2 --
 src/ftxui/component/component_options.cpp     | 26 -------------------
 2 files changed, 28 deletions(-)

diff --git a/include/ftxui/component/component_options.hpp b/include/ftxui/component/component_options.hpp
index 172f3c5a..c5b330fa 100644
--- a/include/ftxui/component/component_options.hpp
+++ b/include/ftxui/component/component_options.hpp
@@ -152,8 +152,6 @@ struct InputOption {
   static InputOption Default();
   /// @brief A white on black style with high margins:
   static InputOption Spacious();
-  /// @brief A style with a border:
-  static InputOption Arthur();
 
   /// The content of the input when it's empty.
   StringRef placeholder = "";
diff --git a/src/ftxui/component/component_options.cpp b/src/ftxui/component/component_options.cpp
index e36ac358..aaebf192 100644
--- a/src/ftxui/component/component_options.cpp
+++ b/src/ftxui/component/component_options.cpp
@@ -303,32 +303,6 @@ InputOption InputOption::Spacious() {
   return option;
 }
 
-// static
-InputOption InputOption::Arthur() {
-  InputOption option;
-  option.transform = [](InputState state) {
-    state.element |= borderEmpty;
-    state.element |= color(Color::White);
-
-    if (state.is_placeholder) {
-      state.element |= dim;
-    }
-
-    if (state.focused) {
-      state.element |= bgcolor(Color::Black);
-    } else {
-      state.element |= bgcolor(LinearGradient(0, Color::Blue, Color::Red));
-    }
-
-    if (state.hovered) {
-      state.element |= bgcolor(Color::GrayDark);
-    }
-
-    return state.element;
-  };
-  return option;
-}
-
 }  // namespace ftxui
 
 // Copyright 2022 Arthur Sonzogni. All rights reserved.
-- 
GitLab