diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-09-30 17:06:02 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-09-30 17:06:02 +0200 |
commit | 4a784356daf12af50047467efb85d6308b0b3603 (patch) | |
tree | c906fba87bfa448099ebc6da174a3781ab22a875 /sql/sql_priv.h | |
parent | 9fe7feb8bb2bcc10c7234d9a0c14d3c0b91291fb (diff) | |
download | mariadb-git-4a784356daf12af50047467efb85d6308b0b3603.tar.gz |
cleanup: an outbreak of templatonia cured.
Diffstat (limited to 'sql/sql_priv.h')
-rw-r--r-- | sql/sql_priv.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sql/sql_priv.h b/sql/sql_priv.h index 30fb1a4c29e..62f84090da8 100644 --- a/sql/sql_priv.h +++ b/sql/sql_priv.h @@ -159,41 +159,6 @@ #define OPTION_ALLOW_BATCH (1ULL << 36) // THD, intern (slave) #define OPTION_SKIP_REPLICATION (1ULL << 37) // THD, user -/* - Check how many bytes are available on buffer. - - @param buf_start Pointer to buffer start. - @param buf_current Pointer to the current position on buffer. - @param buf_len Buffer length. - - @return Number of bytes available on event buffer. -*/ -template <class T> T available_buffer(const char* buf_start, - const char* buf_current, - T buf_len) -{ - return buf_len - (buf_current - buf_start); -} - -/* - Check if jump value is within buffer limits. - - @param jump Number of positions we want to advance. - @param buf_start Pointer to buffer start - @param buf_current Pointer to the current position on buffer. - @param buf_len Buffer length. - - @return True If jump value is within buffer limits. - False Otherwise. -*/ -template <class T> bool valid_buffer_range(T jump, - const char* buf_start, - const char* buf_current, - T buf_len) -{ - return (jump <= available_buffer(buf_start, buf_current, buf_len)); -} - /* The rest of the file is included in the server only */ #ifndef MYSQL_CLIENT |