Skip to content

Commit

Permalink
removed pointless and confusing methods on Model
Browse files Browse the repository at this point in the history
Removed Model::dump() and Model::dd() proxy methods, they are pointless
and are confusing.
  • Loading branch information
silverqx committed Mar 14, 2023
1 parent 0d34243 commit 40c53ce
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions include/orm/tiny/modelproxies.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,12 +854,6 @@ namespace Tiny
static std::unique_ptr<TinyBuilder<Derived>>
lock(QString &&value);

/* Debugging */
/*! Dump the current SQL and bindings. */
static void dump(bool replaceBindings = true, bool simpleBindings = false);
/*! Die and dump the current SQL and bindings. */
static void dd(bool replaceBindings = true, bool simpleBindings = false);

/* Builds Queries */
/*! Chunk the results of the query. */
static bool
Expand Down Expand Up @@ -3328,22 +3322,6 @@ namespace Tiny
return builder;
}

/* Debugging */

template<typename Derived, AllRelationsConcept ...AllRelations>
void ModelProxies<Derived, AllRelations...>::dump(const bool replaceBindings,
const bool simpleBindings)
{
query()->dump(replaceBindings, simpleBindings);
}

template<typename Derived, AllRelationsConcept ...AllRelations>
void ModelProxies<Derived, AllRelations...>::dd(const bool replaceBindings,
const bool simpleBindings)
{
query()->dd(replaceBindings, simpleBindings);
}

/* Builds Queries */

template<typename Derived, AllRelationsConcept ...AllRelations>
Expand Down

0 comments on commit 40c53ce

Please sign in to comment.