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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
40f23241
Commit
40f23241
authored
Jun 30, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: ha_delete(): Remove this unused function that was
very similar to ha_search_and_delete_if_found().
parent
f4a5ab60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
32 deletions
+0
-32
ha/ha0ha.c
ha/ha0ha.c
+0
-22
include/ha0ha.h
include/ha0ha.h
+0
-10
No files found.
ha/ha0ha.c
View file @
40f23241
...
...
@@ -250,28 +250,6 @@ ha_delete_hash_node(
HASH_DELETE_AND_COMPACT
(
ha_node_t
,
next
,
table
,
del_node
);
}
/*************************************************************//**
Deletes an entry from a hash table. */
UNIV_INTERN
void
ha_delete
(
/*======*/
hash_table_t
*
table
,
/*!< in: hash table */
ulint
fold
,
/*!< in: folded value of data */
void
*
data
)
/*!< in: data, must not be NULL and must exist
in the hash table */
{
ha_node_t
*
node
;
ASSERT_HASH_MUTEX_OWN
(
table
,
fold
);
node
=
ha_search_with_data
(
table
,
fold
,
data
);
ut_a
(
node
);
ha_delete_hash_node
(
table
,
node
);
}
/*********************************************************//**
Looks for an element when we know the pointer to the data, and updates
the pointer to data, if found. */
...
...
include/ha0ha.h
View file @
40f23241
...
...
@@ -164,16 +164,6 @@ is inserted.
# define ha_insert_for_fold(t,f,b,d) ha_insert_for_fold_func(t,f,d)
#endif
/* UNIV_AHI_DEBUG || UNIV_DEBUG */
/*************************************************************//**
Deletes an entry from a hash table. */
UNIV_INTERN
void
ha_delete
(
/*======*/
hash_table_t
*
table
,
/*!< in: hash table */
ulint
fold
,
/*!< in: folded value of data */
void
*
data
);
/*!< in: data, must not be NULL and must exist
in the hash table */
/*********************************************************//**
Looks for an element when we know the pointer to the data and deletes
it from the hash table if found.
...
...
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