File tree Expand file tree Collapse file tree 4 files changed +0
-13
lines changed Expand file tree Collapse file tree 4 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,3 @@ abstract class Struct extends NativeType {
58
58
59
59
Struct ._fromPointer (this ._addressOf);
60
60
}
61
-
62
- /// Extension on [Struct] specialized for its subtypes.
63
- extension StructAddressOf <T extends Struct > on T {
64
- /// Returns the address backing the reference.
65
- @Deprecated ('Hold on to the pointer backing a struct instead.' )
66
- Pointer <T > get addressOf => _addressOf as Pointer <T >;
67
- }
Original file line number Diff line number Diff line change @@ -98,8 +98,6 @@ void testTypeTest() {
98
98
final pointer = calloc <Coordinate >();
99
99
Coordinate c = pointer.ref;
100
100
Expect .isTrue (c is Struct );
101
- // TODO(https://dartbug.com/40667): Remove support for this.
102
- Expect .isTrue (c.addressOf is Pointer <Coordinate >);
103
101
calloc.free (pointer);
104
102
}
105
103
Original file line number Diff line number Diff line change @@ -128,8 +128,6 @@ void testTypeTest() {
128
128
final pointer = calloc <Coordinate >();
129
129
Coordinate c = pointer.ref;
130
130
Expect .isTrue (c is Struct );
131
- // TODO(https://dartbug.com/40667): Remove support for this.
132
- Expect .isTrue (c.addressOf is Pointer <Coordinate >);
133
131
calloc.free (pointer);
134
132
}
135
133
Original file line number Diff line number Diff line change @@ -128,8 +128,6 @@ void testTypeTest() {
128
128
final pointer = calloc <Coordinate >();
129
129
Coordinate c = pointer.ref;
130
130
Expect .isTrue (c is Struct );
131
- // TODO(https://dartbug.com/40667): Remove support for this.
132
- Expect .isTrue (c.addressOf is Pointer <Coordinate >);
133
131
calloc.free (pointer);
134
132
}
135
133
You can’t perform that action at this time.
0 commit comments