From 1e2fff0ca906d31b619a57aed137b3b62c9199dc Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Sat, 4 Sep 2021 11:04:51 +0200 Subject: [PATCH] Remove obsolete all_of_t This was a wrapper used for the now-removed multi_column. --- include/sqlpp11/all_of.h | 20 ++------------------ include/sqlpp11/detail/copy_tuple_args.h | 12 ------------ 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/include/sqlpp11/all_of.h b/include/sqlpp11/all_of.h index bf9e71bd..373792f0 100644 --- a/include/sqlpp11/all_of.h +++ b/include/sqlpp11/all_of.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2015, Roland Bock + * Copyright (c) 2013-2021, Roland Bock * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, @@ -27,29 +27,13 @@ #ifndef SQLPP11_ALL_OF_H #define SQLPP11_ALL_OF_H -#include -#include -#include - namespace sqlpp { template - struct all_of_t - { - using _column_tuple_t = typename Table::_column_tuple_t; - }; - - template - auto all_of(Table /*unused*/) -> all_of_t + auto all_of(Table /*unused*/) -> typename Table::_column_tuple_t { return {}; } - - SQLPP_PORTABLE_STATIC_ASSERT(assert_no_stand_alone_all_of_t, "all_of(table) seems to be used outside of select"); - - // FIXME: Do we need this? - template - Context& serialize(const all_of_t
& t, Context& context); } // namespace sqlpp #endif diff --git a/include/sqlpp11/detail/copy_tuple_args.h b/include/sqlpp11/detail/copy_tuple_args.h index 5b94c2cb..f0ea6c33 100644 --- a/include/sqlpp11/detail/copy_tuple_args.h +++ b/include/sqlpp11/detail/copy_tuple_args.h @@ -32,9 +32,6 @@ namespace sqlpp { - template - struct all_of_t; - namespace detail { template @@ -46,15 +43,6 @@ namespace sqlpp } }; - template - struct as_column_tuple> - { - static typename all_of_t::_column_tuple_t _(all_of_t /*unused*/) - { - return {}; - } - }; - template struct as_column_tuple> {