Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
4581399a
Unverified
Commit
4581399a
authored
Oct 03, 2023
by
LongCatIsLooong
Committed by
GitHub
Oct 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused InlineSpan methods (#135882)
parent
51229911
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
33 deletions
+0
-33
placeholder_span.dart
packages/flutter/lib/src/painting/placeholder_span.dart
+0
-14
text_span.dart
packages/flutter/lib/src/painting/text_span.dart
+0
-19
No files found.
packages/flutter/lib/src/painting/placeholder_span.dart
View file @
4581399a
...
@@ -72,20 +72,6 @@ abstract class PlaceholderSpan extends InlineSpan {
...
@@ -72,20 +72,6 @@ abstract class PlaceholderSpan extends InlineSpan {
collector
.
add
(
InlineSpanSemanticsInformation
.
placeholder
);
collector
.
add
(
InlineSpanSemanticsInformation
.
placeholder
);
}
}
/// Populates the `semanticsOffsets` and `semanticsElements` with the appropriate data
/// to be able to construct a [SemanticsNode].
///
/// [PlaceholderSpan]s have a text length of 1, which corresponds to the object
/// replacement character (0xFFFC) that is inserted to represent it.
///
/// Null is added to `semanticsElements` for [PlaceholderSpan]s.
void
describeSemantics
(
Accumulator
offset
,
List
<
int
>
semanticsOffsets
,
List
<
dynamic
>
semanticsElements
)
{
semanticsOffsets
.
add
(
offset
.
value
);
semanticsOffsets
.
add
(
offset
.
value
+
1
);
semanticsElements
.
add
(
null
);
// null indicates this is a placeholder.
offset
.
increment
(
1
);
}
@override
@override
void
debugFillProperties
(
DiagnosticPropertiesBuilder
properties
)
{
void
debugFillProperties
(
DiagnosticPropertiesBuilder
properties
)
{
super
.
debugFillProperties
(
properties
);
super
.
debugFillProperties
(
properties
);
...
...
packages/flutter/lib/src/painting/text_span.dart
View file @
4581399a
...
@@ -431,25 +431,6 @@ class TextSpan extends InlineSpan implements HitTestTarget, MouseTrackerAnnotati
...
@@ -431,25 +431,6 @@ class TextSpan extends InlineSpan implements HitTestTarget, MouseTrackerAnnotati
return
localOffset
<
text
.
length
?
text
.
codeUnitAt
(
localOffset
)
:
null
;
return
localOffset
<
text
.
length
?
text
.
codeUnitAt
(
localOffset
)
:
null
;
}
}
/// Populates the `semanticsOffsets` and `semanticsElements` with the appropriate data
/// to be able to construct a [SemanticsNode].
///
/// If applicable, the beginning and end text offset are added to [semanticsOffsets].
/// [PlaceholderSpan]s have a text length of 1, which corresponds to the object
/// replacement character (0xFFFC) that is inserted to represent it.
///
/// Any [GestureRecognizer]s are added to `semanticsElements`. Null is added to
/// `semanticsElements` for [PlaceholderSpan]s.
void
describeSemantics
(
Accumulator
offset
,
List
<
int
>
semanticsOffsets
,
List
<
dynamic
>
semanticsElements
)
{
if
(
recognizer
is
TapGestureRecognizer
||
recognizer
is
LongPressGestureRecognizer
)
{
final
int
length
=
semanticsLabel
?.
length
??
text
!.
length
;
semanticsOffsets
.
add
(
offset
.
value
);
semanticsOffsets
.
add
(
offset
.
value
+
length
);
semanticsElements
.
add
(
recognizer
);
}
offset
.
increment
(
text
!=
null
?
text
!.
length
:
0
);
}
/// In debug mode, throws an exception if the object is not in a valid
/// In debug mode, throws an exception if the object is not in a valid
/// configuration. Otherwise, returns true.
/// configuration. Otherwise, returns true.
///
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment