From c7ab84fc71fc637cb0cbd1f93e5730bcae6eb189 Mon Sep 17 00:00:00 2001 From: Thomas BESSOU Date: Thu, 25 Jul 2024 12:21:02 +0200 Subject: [PATCH] Remove unused NoCombinationClause type New compiler warnings seem to highlight that this wasn't used --- diesel/src/query_builder/combination_clause.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/diesel/src/query_builder/combination_clause.rs b/diesel/src/query_builder/combination_clause.rs index 67b2ebfca804..ba7908e60df2 100644 --- a/diesel/src/query_builder/combination_clause.rs +++ b/diesel/src/query_builder/combination_clause.rs @@ -8,18 +8,6 @@ use crate::query_builder::insert_statement::InsertFromSelect; use crate::query_builder::{AsQuery, AstPass, Query, QueryFragment, QueryId, SelectQuery}; use crate::{CombineDsl, Insertable, QueryResult, RunQueryDsl, Table}; -#[derive(Debug, Clone, Copy, QueryId)] -pub(crate) struct NoCombinationClause; - -impl QueryFragment for NoCombinationClause -where - DB: Backend + DieselReserveSpecialization, -{ - fn walk_ast<'b>(&'b self, _: AstPass<'_, 'b, DB>) -> QueryResult<()> { - Ok(()) - } -} - #[derive(Debug, Copy, Clone, QueryId)] #[must_use = "Queries are only executed when calling `load`, `get_result` or similar."] /// Combine queries using a combinator like `UNION`, `INTERSECT` or `EXPECT`