From f9400d98315f3ddd4e6d95da76cefafdd9d2be05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Mon, 2 Dec 2024 21:16:54 +0100 Subject: [PATCH] Remove unused Projection operator (#1543) --- .gitattributes | 1 - psalm-baseline.xml | 5 --- src/Builder/Projection.php | 22 --------- src/Builder/Projection/ElemMatchOperator.php | 47 -------------------- src/Builder/Projection/FactoryTrait.php | 28 ------------ src/Builder/Type/ProjectionInterface.php | 14 ------ 6 files changed, 117 deletions(-) delete mode 100644 src/Builder/Projection.php delete mode 100644 src/Builder/Projection/ElemMatchOperator.php delete mode 100644 src/Builder/Projection/FactoryTrait.php delete mode 100644 src/Builder/Type/ProjectionInterface.php diff --git a/.gitattributes b/.gitattributes index 7f54ebe53..75618ae42 100644 --- a/.gitattributes +++ b/.gitattributes @@ -22,6 +22,5 @@ rector.php export-ignore /src/Builder/Accumulator/*.php linguist-generated=true /src/Builder/Expression/*.php linguist-generated=true /src/Builder/Query/*.php linguist-generated=true -/src/Builder/Projection/*.php linguist-generated=true /src/Builder/Stage/*.php linguist-generated=true /tests/Builder/*/Pipelines.php linguist-generated=true diff --git a/psalm-baseline.xml b/psalm-baseline.xml index ba4f3cb4f..4619f8206 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -90,11 +90,6 @@ - - - - - diff --git a/src/Builder/Projection.php b/src/Builder/Projection.php deleted file mode 100644 index e8e90f7f6..000000000 --- a/src/Builder/Projection.php +++ /dev/null @@ -1,22 +0,0 @@ -query = $query; - } - - public function getOperator(): string - { - return '$elemMatch'; - } -} diff --git a/src/Builder/Projection/FactoryTrait.php b/src/Builder/Projection/FactoryTrait.php deleted file mode 100644 index 359926ded..000000000 --- a/src/Builder/Projection/FactoryTrait.php +++ /dev/null @@ -1,28 +0,0 @@ -