Skip to content

Commit

Permalink
speedreader: icon: Delete dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Kuehler committed Jul 12, 2021
1 parent 1256137 commit ab1af8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 2 additions & 0 deletions browser/ui/views/speedreader/speedreader_icon_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include "ui/views/animation/ink_drop_host_view.h"
#include "ui/views/animation/ink_drop_state.h"

using DistillState = speedreader::SpeedreaderTabHelper::DistillState;

SpeedreaderIconView::SpeedreaderIconView(
CommandUpdater* command_updater,
IconLabelBubbleView::Delegate* icon_label_bubble_delegate,
Expand Down
9 changes: 1 addition & 8 deletions browser/ui/views/speedreader/speedreader_icon_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,8 @@

#include "brave/browser/speedreader/speedreader_tab_helper.h"
#include "chrome/browser/ui/views/page_action/page_action_icon_view.h"
#include "content/public/browser/web_contents_observer.h"
#include "ui/base/metadata/metadata_header_macros.h"

using DistillState = speedreader::SpeedreaderTabHelper::DistillState;

namespace content {
class NavigationHandle;
} // namespace content

class PrefService;

class SpeedreaderIconView : public PageActionIconView {
Expand All @@ -38,7 +31,7 @@ class SpeedreaderIconView : public PageActionIconView {
std::u16string GetTextForTooltipAndAccessibleName() const override;
void UpdateImpl() override;
private:
DistillState GetDistillState() const;
speedreader::SpeedreaderTabHelper::DistillState GetDistillState() const;
};

#endif // BRAVE_BROWSER_UI_VIEWS_SPEEDREADER_SPEEDREADER_ICON_VIEW_H_

0 comments on commit ab1af8e

Please sign in to comment.