Skip to content

Commit d55b3d7

Browse files
committed
Merge branch 'firestore-pipelines-dart-api-v2' into firestore-pipelines-android
2 parents 086ccac + 59d4b14 commit d55b3d7

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

packages/cloud_firestore/cloud_firestore/lib/src/pipeline_expression.dart

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -479,16 +479,6 @@ abstract class Expression implements PipelineSerializable {
479479
return _ArraySumExpression(this);
480480
}
481481

482-
/// Extracts a slice from this array
483-
Expression arraySlice(Expression start, Expression end) {
484-
return _ArraySliceExpression(this, start, end);
485-
}
486-
487-
/// Extracts a slice using literal indices
488-
Expression arraySliceLiteral(int start, int end) {
489-
return _ArraySliceExpression(this, Constant(start), Constant(end));
490-
}
491-
492482
// ============================================================================
493483
// AGGREGATE FUNCTIONS
494484
// ============================================================================
@@ -1309,15 +1299,6 @@ abstract class Expression implements PipelineSerializable {
13091299
return _ArrayLengthExpression(Field(arrayFieldName));
13101300
}
13111301

1312-
/// Slices array
1313-
static Expression arraySliceStatic(
1314-
Expression array,
1315-
Expression start,
1316-
Expression end,
1317-
) {
1318-
return _ArraySliceExpression(array, start, end);
1319-
}
1320-
13211302
/// Checks array contains
13221303
static BooleanExpression arrayContainsElementStatic(
13231304
Expression array,
@@ -2182,30 +2163,6 @@ class _ArraySumExpression extends FunctionExpression {
21822163
}
21832164
}
21842165

2185-
/// Represents an array slice function expression
2186-
class _ArraySliceExpression extends FunctionExpression {
2187-
final Expression array;
2188-
final Expression start;
2189-
final Expression end;
2190-
2191-
_ArraySliceExpression(this.array, this.start, this.end);
2192-
2193-
@override
2194-
String get name => 'array_slice';
2195-
2196-
@override
2197-
Map<String, dynamic> toMap() {
2198-
return {
2199-
'name': name,
2200-
'args': {
2201-
'array': array.toMap(),
2202-
'start': start.toMap(),
2203-
'end': end.toMap(),
2204-
},
2205-
};
2206-
}
2207-
}
2208-
22092166
// ============================================================================
22102167
// CONDITIONAL / LOGIC OPERATION EXPRESSION CLASSES
22112168
// ============================================================================

0 commit comments

Comments
 (0)