Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ee590d4

Browse files
authored
Make lib/ui/{text|window}/... compatible with .clang_tidy. (#48000)
I just ... deleted `text_box.h` as it appears unused and unreferenced? --- Work towards flutter/flutter#134969. All changes were made automatically (i.e. with `--fix`).
1 parent 3cfcdeb commit ee590d4

File tree

7 files changed

+5
-37
lines changed

7 files changed

+5
-37
lines changed

ci/licenses_golden/licenses_flutter

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3744,7 +3744,6 @@ ORIGIN: ../../../flutter/lib/ui/text/paragraph.cc + ../../../flutter/LICENSE
37443744
ORIGIN: ../../../flutter/lib/ui/text/paragraph.h + ../../../flutter/LICENSE
37453745
ORIGIN: ../../../flutter/lib/ui/text/paragraph_builder.cc + ../../../flutter/LICENSE
37463746
ORIGIN: ../../../flutter/lib/ui/text/paragraph_builder.h + ../../../flutter/LICENSE
3747-
ORIGIN: ../../../flutter/lib/ui/text/text_box.h + ../../../flutter/LICENSE
37483747
ORIGIN: ../../../flutter/lib/ui/ui.dart + ../../../flutter/LICENSE
37493748
ORIGIN: ../../../flutter/lib/ui/ui_benchmarks.cc + ../../../flutter/LICENSE
37503749
ORIGIN: ../../../flutter/lib/ui/ui_dart_state.cc + ../../../flutter/LICENSE
@@ -6513,7 +6512,6 @@ FILE: ../../../flutter/lib/ui/text/paragraph.cc
65136512
FILE: ../../../flutter/lib/ui/text/paragraph.h
65146513
FILE: ../../../flutter/lib/ui/text/paragraph_builder.cc
65156514
FILE: ../../../flutter/lib/ui/text/paragraph_builder.h
6516-
FILE: ../../../flutter/lib/ui/text/text_box.h
65176515
FILE: ../../../flutter/lib/ui/ui.dart
65186516
FILE: ../../../flutter/lib/ui/ui_benchmarks.cc
65196517
FILE: ../../../flutter/lib/ui/ui_dart_state.cc

lib/ui/BUILD.gn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ source_set("ui") {
128128
"text/paragraph.h",
129129
"text/paragraph_builder.cc",
130130
"text/paragraph_builder.h",
131-
"text/text_box.h",
132131
"ui_dart_state.cc",
133132
"ui_dart_state.h",
134133
"volatile_path_tracker.cc",

lib/ui/text/paragraph.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "flutter/lib/ui/dart_wrapper.h"
1010
#include "flutter/lib/ui/painting/canvas.h"
1111
#include "flutter/lib/ui/text/line_metrics.h"
12-
#include "flutter/lib/ui/text/text_box.h"
1312
#include "flutter/third_party/txt/src/txt/paragraph.h"
1413

1514
namespace flutter {

lib/ui/text/text_box.h

Lines changed: 0 additions & 28 deletions
This file was deleted.

lib/ui/window/platform_message.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ PlatformMessage::PlatformMessage(std::string channel,
1313
fml::RefPtr<PlatformMessageResponse> response)
1414
: channel_(std::move(channel)),
1515
data_(std::move(data)),
16-
hasData_(true),
16+
has_data_(true),
1717
response_(std::move(response)) {}
1818
PlatformMessage::PlatformMessage(std::string channel,
1919
fml::RefPtr<PlatformMessageResponse> response)
2020
: channel_(std::move(channel)),
2121
data_(),
22-
hasData_(false),
22+
has_data_(false),
2323
response_(std::move(response)) {}
2424

2525
PlatformMessage::~PlatformMessage() = default;

lib/ui/window/platform_message.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PlatformMessage {
2525

2626
const std::string& channel() const { return channel_; }
2727
const fml::MallocMapping& data() const { return data_; }
28-
bool hasData() { return hasData_; }
28+
bool hasData() { return has_data_; }
2929

3030
const fml::RefPtr<PlatformMessageResponse>& response() const {
3131
return response_;
@@ -36,7 +36,7 @@ class PlatformMessage {
3636
private:
3737
std::string channel_;
3838
fml::MallocMapping data_;
39-
bool hasData_;
39+
bool has_data_;
4040
fml::RefPtr<PlatformMessageResponse> response_;
4141
};
4242

lib/ui/window/pointer_data_packet_converter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class PointerDataPacketConverter {
9999
private:
100100
std::map<int64_t, PointerState> states_;
101101

102-
int64_t pointer_;
102+
int64_t pointer_ = 0;
103103

104104
void ConvertPointerData(PointerData pointer_data,
105105
std::vector<PointerData>& converted_pointers);

0 commit comments

Comments
 (0)