summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-12-23 14:24:06 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-12-23 14:24:06 +0200
commit097786c485c6d10064e8bc593b6aa54e477712f9 (patch)
tree9c52bd39b5563263dd4b2fe468592583590f2cf2 /storage
parent9b38ed4c85bda254f48c02890f134adf227700e3 (diff)
downloadmariadb-git-097786c485c6d10064e8bc593b6aa54e477712f9.tar.gz
Partially revert 7410ff436e95de09c2f3f0028e7af8b3a043028b
Remove the unused dbug_print_rec() functions because they break the clang build due to -Wreturn-stack-address
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/ut/ut0ut.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/storage/innobase/ut/ut0ut.cc b/storage/innobase/ut/ut0ut.cc
index 65a2c9356e2..6d2b84625f7 100644
--- a/storage/innobase/ut/ut0ut.cc
+++ b/storage/innobase/ut/ut0ut.cc
@@ -38,7 +38,6 @@ Created 5/11/1994 Heikki Tuuri
#include <string>
#include "log.h"
#include "my_cpu.h"
-#include "rem0rec.h"
/**********************************************************//**
Returns the number of milliseconds since some epoch. The
@@ -628,42 +627,4 @@ fatal_or_error::~fatal_or_error()
} // namespace ib
-#ifndef DBUG_OFF
-const char * dbug_print_rec(const rec_t* rec, const rec_offs* offsets)
-{
- rec_printer r(rec, offsets);
- return r.str().c_str();
-}
-
-const char * dbug_print_rec(const rec_t* rec, ulint info, const rec_offs* offsets)
-{
- rec_printer r(rec, info, offsets);
- return r.str().c_str();
-}
-
-const char * dbug_print_rec(const dtuple_t* tuple)
-{
- rec_printer r(tuple);
- return r.str().c_str();
-}
-
-const char * dbug_print_rec(const dfield_t* field, ulint n)
-{
- rec_printer r(field, n);
- return r.str().c_str();
-}
-
-const char * dbug_print_rec(const rec_t* rec, dict_index_t* index)
-{
- rec_offs offsets_[REC_OFFS_NORMAL_SIZE];
- rec_offs* offsets = offsets_;
- rec_offs_init(offsets_);
- mem_heap_t* tmp_heap = NULL;
- offsets = rec_get_offsets(rec, index, offsets, true,
- ULINT_UNDEFINED, &tmp_heap);
- rec_printer r(rec, offsets);
- return r.str().c_str();
-}
-#endif /* !DBUG_OFF */
-
#endif /* !UNIV_INNOCHECKSUM */