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

Commit 756391f

Browse files
Remove unused files
1 parent 476e6fb commit 756391f

File tree

6 files changed

+0
-143
lines changed

6 files changed

+0
-143
lines changed

ci/licenses_golden/licenses_flutter

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,12 +1873,10 @@ ORIGIN: ../../../flutter/lib/ui/text/asset_manager_font_provider.cc + ../../../f
18731873
ORIGIN: ../../../flutter/lib/ui/text/asset_manager_font_provider.h + ../../../flutter/LICENSE
18741874
ORIGIN: ../../../flutter/lib/ui/text/font_collection.cc + ../../../flutter/LICENSE
18751875
ORIGIN: ../../../flutter/lib/ui/text/font_collection.h + ../../../flutter/LICENSE
1876-
ORIGIN: ../../../flutter/lib/ui/text/line_metrics.h + ../../../flutter/LICENSE
18771876
ORIGIN: ../../../flutter/lib/ui/text/paragraph.cc + ../../../flutter/LICENSE
18781877
ORIGIN: ../../../flutter/lib/ui/text/paragraph.h + ../../../flutter/LICENSE
18791878
ORIGIN: ../../../flutter/lib/ui/text/paragraph_builder.cc + ../../../flutter/LICENSE
18801879
ORIGIN: ../../../flutter/lib/ui/text/paragraph_builder.h + ../../../flutter/LICENSE
1881-
ORIGIN: ../../../flutter/lib/ui/text/text_box.h + ../../../flutter/LICENSE
18821880
ORIGIN: ../../../flutter/lib/ui/ui.dart + ../../../flutter/LICENSE
18831881
ORIGIN: ../../../flutter/lib/ui/ui_benchmarks.cc + ../../../flutter/LICENSE
18841882
ORIGIN: ../../../flutter/lib/ui/ui_dart_state.cc + ../../../flutter/LICENSE
@@ -4605,12 +4603,10 @@ FILE: ../../../flutter/lib/ui/text/asset_manager_font_provider.cc
46054603
FILE: ../../../flutter/lib/ui/text/asset_manager_font_provider.h
46064604
FILE: ../../../flutter/lib/ui/text/font_collection.cc
46074605
FILE: ../../../flutter/lib/ui/text/font_collection.h
4608-
FILE: ../../../flutter/lib/ui/text/line_metrics.h
46094606
FILE: ../../../flutter/lib/ui/text/paragraph.cc
46104607
FILE: ../../../flutter/lib/ui/text/paragraph.h
46114608
FILE: ../../../flutter/lib/ui/text/paragraph_builder.cc
46124609
FILE: ../../../flutter/lib/ui/text/paragraph_builder.h
4613-
FILE: ../../../flutter/lib/ui/text/text_box.h
46144610
FILE: ../../../flutter/lib/ui/ui.dart
46154611
FILE: ../../../flutter/lib/ui/ui_benchmarks.cc
46164612
FILE: ../../../flutter/lib/ui/ui_dart_state.cc

lib/ui/BUILD.gn

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,10 @@ source_set("ui") {
123123
"text/asset_manager_font_provider.h",
124124
"text/font_collection.cc",
125125
"text/font_collection.h",
126-
"text/line_metrics.h",
127126
"text/paragraph.cc",
128127
"text/paragraph.h",
129128
"text/paragraph_builder.cc",
130129
"text/paragraph_builder.h",
131-
"text/text_box.h",
132130
"ui_dart_state.cc",
133131
"ui_dart_state.h",
134132
"volatile_path_tracker.cc",

lib/ui/text.dart

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ enum FontWeight {
4141
/// Black, the most thick
4242
w900._(900);
4343

44-
// Users are not allowed to specify a `FontWeight` outside of the w100-w900
45-
// range but j
4644
const FontWeight._(this.value);
4745

4846
/// The thickness value of this font weight.
@@ -2554,18 +2552,6 @@ class LineMetrics {
25542552
required this.lineNumber,
25552553
});
25562554

2557-
LineMetrics._(
2558-
this.hardBreak,
2559-
this.ascent,
2560-
this.descent,
2561-
this.unscaledAscent,
2562-
this.height,
2563-
this.width,
2564-
this.left,
2565-
this.baseline,
2566-
this.lineNumber,
2567-
);
2568-
25692555
/// True if this line ends with an explicit line break (e.g. '\n') or is the end
25702556
/// of the paragraph. False otherwise.
25712557
final bool hardBreak;
@@ -2786,14 +2772,6 @@ abstract class Paragraph {
27862772
/// to repeatedly call this. Instead, cache the results.
27872773
List<LineMetrics> computeLineMetrics();
27882774

2789-
LineMetrics? getLineMetricsAt(int lineNumber);
2790-
2791-
int get numberOfLines;
2792-
2793-
int? getLineNumber(int codeUnitOffset);
2794-
2795-
FontInfo? getFontInfoAt(int codeUnitOffset);
2796-
27972775
/// Release the resources used by this object. The object is no longer usable
27982776
/// after this method is called.
27992777
void dispose();
@@ -2973,29 +2951,6 @@ base class _NativeParagraph extends NativeFieldWrapperClass1 implements Paragrap
29732951
@Native<Handle Function(Pointer<Void>)>(symbol: 'Paragraph::computeLineMetrics')
29742952
external Float64List _computeLineMetrics();
29752953

2976-
@override
2977-
LineMetrics? getLineMetricsAt(int lineNumber) {
2978-
return _getLineMetricsAt(lineNumber, LineMetrics._);
2979-
}
2980-
@Native<Handle Function(Pointer<Void>, Uint32, Handle)>(symbol: 'Paragraph::getLineMetricsAt')
2981-
external LineMetrics? _getLineMetricsAt(int lineNumber, Function constructor);
2982-
2983-
@override
2984-
FontInfo? getFontInfoAt(int codeUnitOffset) {
2985-
assert(codeUnitOffset >= 0);
2986-
return _getFontInfoAt(codeUnitOffset, FontInfo.new);
2987-
}
2988-
@Native<Handle Function(Pointer<Void>, Uint32, Handle)>(symbol: 'Paragraph::getFontInfoAt')
2989-
external FontInfo? _getFontInfoAt(int codeUnitOffset, Function constructor);
2990-
2991-
@override
2992-
@Native<Uint32 Function(Pointer<Void>)>(symbol: 'Paragraph::getNumberOfLines')
2993-
external int get numberOfLines;
2994-
2995-
@override
2996-
@Native<Uint32 Function(Pointer<Void>, Uint32)>(symbol: 'Paragraph::getLineNumberAt')
2997-
external int getLineNumber(int codeUnitOffset);
2998-
29992954
@override
30002955
void dispose() {
30012956
assert(!_disposed);

lib/ui/text/line_metrics.h

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

lib/ui/text/paragraph.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#include "flutter/fml/message_loop.h"
99
#include "flutter/lib/ui/dart_wrapper.h"
1010
#include "flutter/lib/ui/painting/canvas.h"
11-
#include "flutter/lib/ui/text/line_metrics.h"
12-
#include "flutter/lib/ui/text/text_box.h"
1311
#include "flutter/third_party/txt/src/txt/paragraph.h"
1412

1513
namespace flutter {

lib/ui/text/text_box.h

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

0 commit comments

Comments
 (0)