Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1f3bcff1
Commit
1f3bcff1
authored
Apr 03, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused declarations
parent
fa147843
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1 addition
and
63 deletions
+1
-63
mysys/thr_lock.c
mysys/thr_lock.c
+0
-11
sql/sql_signal.cc
sql/sql_signal.cc
+0
-14
sql/wsrep_sst.cc
sql/wsrep_sst.cc
+0
-2
storage/federated/ha_federated.cc
storage/federated/ha_federated.cc
+0
-1
storage/federated/ha_federated.h
storage/federated/ha_federated.h
+0
-1
storage/federatedx/federatedx_io.cc
storage/federatedx/federatedx_io.cc
+0
-2
storage/federatedx/ha_federatedx.cc
storage/federatedx/ha_federatedx.cc
+0
-1
storage/federatedx/ha_federatedx.h
storage/federatedx/ha_federatedx.h
+0
-1
strings/ctype-utf8.c
strings/ctype-utf8.c
+1
-30
No files found.
mysys/thr_lock.c
View file @
1f3bcff1
...
...
@@ -497,17 +497,6 @@ has_old_lock(THR_LOCK_DATA *data, THR_LOCK_INFO *owner)
return
0
;
}
static
inline
my_bool
have_specific_lock
(
THR_LOCK_DATA
*
data
,
enum
thr_lock_type
type
)
{
for
(
;
data
;
data
=
data
->
next
)
{
if
(
data
->
type
==
type
)
return
1
;
}
return
0
;
}
static
void
wake_up_waiters
(
THR_LOCK
*
lock
);
...
...
sql/sql_signal.cc
View file @
1f3bcff1
...
...
@@ -63,20 +63,6 @@ const LEX_STRING Diag_condition_item_names[]=
{
C_STRING_WITH_LEN
(
"TRIGGER_SCHEMA"
)
}
};
const
LEX_STRING
Diag_statement_item_names
[]
=
{
{
C_STRING_WITH_LEN
(
"NUMBER"
)
},
{
C_STRING_WITH_LEN
(
"MORE"
)
},
{
C_STRING_WITH_LEN
(
"COMMAND_FUNCTION"
)
},
{
C_STRING_WITH_LEN
(
"COMMAND_FUNCTION_CODE"
)
},
{
C_STRING_WITH_LEN
(
"DYNAMIC_FUNCTION"
)
},
{
C_STRING_WITH_LEN
(
"DYNAMIC_FUNCTION_CODE"
)
},
{
C_STRING_WITH_LEN
(
"ROW_COUNT"
)
},
{
C_STRING_WITH_LEN
(
"TRANSACTIONS_COMMITTED"
)
},
{
C_STRING_WITH_LEN
(
"TRANSACTIONS_ROLLED_BACK"
)
},
{
C_STRING_WITH_LEN
(
"TRANSACTION_ACTIVE"
)
}
};
Set_signal_information
::
Set_signal_information
(
const
Set_signal_information
&
set
)
...
...
sql/wsrep_sst.cc
View file @
1f3bcff1
...
...
@@ -184,8 +184,6 @@ bool wsrep_sst_donor_update (sys_var *self, THD* thd, enum_var_type type)
return
0
;
}
static
wsrep_uuid_t
cluster_uuid
=
WSREP_UUID_UNDEFINED
;
bool
wsrep_before_SE
()
{
return
(
wsrep_provider
!=
NULL
...
...
storage/federated/ha_federated.cc
View file @
1f3bcff1
...
...
@@ -408,7 +408,6 @@ static const int bulk_padding= 64; // bytes "overhead" in packet
/* Variables used when chopping off trailing characters */
static
const
uint
sizeof_trailing_comma
=
sizeof
(
", "
)
-
1
;
static
const
uint
sizeof_trailing_closeparen
=
sizeof
(
") "
)
-
1
;
static
const
uint
sizeof_trailing_and
=
sizeof
(
" AND "
)
-
1
;
static
const
uint
sizeof_trailing_where
=
sizeof
(
" WHERE "
)
-
1
;
...
...
storage/federated/ha_federated.h
View file @
1f3bcff1
...
...
@@ -89,7 +89,6 @@ class ha_federated: public handler
*/
DYNAMIC_ARRAY
results
;
bool
position_called
,
table_will_be_deleted
;
uint
fetch_num
;
// stores the fetch num
MYSQL_ROW_OFFSET
current_position
;
// Current position used by ::position()
int
remote_error_number
;
char
remote_error_buf
[
FEDERATED_QUERY_BUFFER_SIZE
];
...
...
storage/federatedx/federatedx_io.cc
View file @
1f3bcff1
...
...
@@ -54,8 +54,6 @@ static const io_schemes_st federated_io_schemes[] =
{
"null"
,
instantiate_io_null
}
/* must be last element */
};
const
uint
federated_io_schemes_count
=
array_elements
(
federated_io_schemes
);
federatedx_io
::
federatedx_io
(
FEDERATEDX_SERVER
*
aserver
)
:
server
(
aserver
),
owner_ptr
(
0
),
txn_next
(
0
),
idle_next
(
0
),
active
(
FALSE
),
busy
(
FALSE
),
readonly
(
TRUE
)
...
...
storage/federatedx/ha_federatedx.cc
View file @
1f3bcff1
...
...
@@ -337,7 +337,6 @@ static const int bulk_padding= 64; // bytes "overhead" in packet
/* Variables used when chopping off trailing characters */
static
const
uint
sizeof_trailing_comma
=
sizeof
(
", "
)
-
1
;
static
const
uint
sizeof_trailing_closeparen
=
sizeof
(
") "
)
-
1
;
static
const
uint
sizeof_trailing_and
=
sizeof
(
" AND "
)
-
1
;
static
const
uint
sizeof_trailing_where
=
sizeof
(
" WHERE "
)
-
1
;
...
...
storage/federatedx/ha_federatedx.h
View file @
1f3bcff1
...
...
@@ -270,7 +270,6 @@ class ha_federatedx: public handler
*/
DYNAMIC_ARRAY
results
;
bool
position_called
;
uint
fetch_num
;
// stores the fetch num
int
remote_error_number
;
char
remote_error_buf
[
FEDERATEDX_QUERY_BUFFER_SIZE
];
bool
ignore_duplicates
,
replace_duplicates
;
...
...
strings/ctype-utf8.c
View file @
1f3bcff1
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates.
Copyright (c) 2009, 201
7
, MariaDB
Copyright (c) 2009, 201
9
, MariaDB
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
...
...
@@ -4887,16 +4887,6 @@ static const uchar to_upper_utf8[] = {
240
,
241
,
242
,
243
,
244
,
245
,
246
,
247
,
248
,
249
,
250
,
251
,
252
,
253
,
254
,
255
};
static
inline
int
bincmp
(
const
uchar
*
s
,
const
uchar
*
se
,
const
uchar
*
t
,
const
uchar
*
te
)
{
int
slen
=
(
int
)
(
se
-
s
),
tlen
=
(
int
)
(
te
-
t
);
int
len
=
MY_MIN
(
slen
,
tlen
);
int
cmp
=
memcmp
(
s
,
t
,
len
);
return
cmp
?
cmp
:
slen
-
tlen
;
}
static
int
my_utf8_uni
(
CHARSET_INFO
*
cs
__attribute__
((
unused
)),
my_wc_t
*
pwc
,
const
uchar
*
s
,
const
uchar
*
e
)
{
...
...
@@ -5059,14 +5049,6 @@ my_toupper_utf8mb3(MY_UNICASE_INFO *uni_plane, my_wc_t *wc)
}
static
inline
void
my_tosort_utf8mb3
(
MY_UNICASE_INFO
*
uni_plane
,
my_wc_t
*
wc
)
{
MY_UNICASE_CHARACTER
*
page
;
if
((
page
=
uni_plane
->
page
[(
*
wc
>>
8
)
&
0xFF
]))
*
wc
=
page
[
*
wc
&
0xFF
].
sort
;
}
static
size_t
my_caseup_utf8
(
CHARSET_INFO
*
cs
,
const
char
*
src
,
size_t
srclen
,
char
*
dst
,
size_t
dstlen
)
{
...
...
@@ -7306,17 +7288,6 @@ static uchar to_upper_utf8mb4[]=
};
static
inline
int
bincmp_utf8mb4
(
const
uchar
*
s
,
const
uchar
*
se
,
const
uchar
*
t
,
const
uchar
*
te
)
{
int
slen
=
(
int
)
(
se
-
s
),
tlen
=
(
int
)
(
te
-
t
);
int
len
=
MY_MIN
(
slen
,
tlen
);
int
cmp
=
memcmp
(
s
,
t
,
len
);
return
cmp
?
cmp
:
slen
-
tlen
;
}
static
int
my_mb_wc_utf8mb4
(
CHARSET_INFO
*
cs
__attribute__
((
unused
)),
my_wc_t
*
pwc
,
const
uchar
*
s
,
const
uchar
*
e
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment