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
8217f4bc
Unverified
Commit
8217f4bc
authored
May 28, 2019
by
Yegor
Committed by
GitHub
May 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove Layer.replaceWith due to no usage and no tests (#33164)
parent
20c31e7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
layer.dart
packages/flutter/lib/src/rendering/layer.dart
+0
-33
No files found.
packages/flutter/lib/src/rendering/layer.dart
View file @
8217f4bc
...
...
@@ -125,39 +125,6 @@ abstract class Layer extends AbstractNode with DiagnosticableTreeMixin {
parent
?.
_removeChild
(
this
);
}
/// Replaces this layer with the given layer in the parent layer's child list.
void
replaceWith
(
Layer
newLayer
)
{
assert
(
parent
!=
null
);
assert
(
attached
==
parent
.
attached
);
assert
(
newLayer
.
parent
==
null
);
assert
(
newLayer
.
_nextSibling
==
null
);
assert
(
newLayer
.
_previousSibling
==
null
);
assert
(!
newLayer
.
attached
);
newLayer
.
_nextSibling
=
nextSibling
;
if
(
_nextSibling
!=
null
)
_nextSibling
.
_previousSibling
=
newLayer
;
newLayer
.
_previousSibling
=
previousSibling
;
if
(
_previousSibling
!=
null
)
_previousSibling
.
_nextSibling
=
newLayer
;
assert
(()
{
Layer
node
=
this
;
while
(
node
.
parent
!=
null
)
node
=
node
.
parent
;
assert
(
node
!=
newLayer
);
// indicates we are about to create a cycle
return
true
;
}());
parent
.
adoptChild
(
newLayer
);
assert
(
newLayer
.
attached
==
parent
.
attached
);
if
(
parent
.
firstChild
==
this
)
parent
.
_firstChild
=
newLayer
;
if
(
parent
.
lastChild
==
this
)
parent
.
_lastChild
=
newLayer
;
_nextSibling
=
null
;
_previousSibling
=
null
;
parent
.
dropChild
(
this
);
assert
(!
attached
);
}
/// Returns the value of [S] that corresponds to the point described by
/// [regionOffset].
///
...
...
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