Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
50cb781b
Unverified
Commit
50cb781b
authored
Jun 05, 2020
by
Rémi Verschelde
Committed by
GitHub
Jun 05, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #39316 from Anutrix/remove-hashmap-reduntant-func
Remove unused function get_key_value_ptr_array from hash_map.h and another tiny fix.
parents
e3db6199
c9edc82b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
hash_map.h
core/hash_map.h
+2
-16
No files found.
core/hash_map.h
View file @
50cb781b
...
...
@@ -524,28 +524,14 @@ public:
copy_from
(
p_table
);
}
void
get_key_
value_ptr_array
(
const
Pair
**
p_pair
s
)
const
{
void
get_key_
list
(
List
<
TKey
>
*
r_key
s
)
const
{
if
(
unlikely
(
!
hash_table
))
{
return
;
}
for
(
int
i
=
0
;
i
<
(
1
<<
hash_table_power
);
i
++
)
{
Element
*
e
=
hash_table
[
i
];
while
(
e
)
{
*
p_pairs
=
&
e
->
pair
;
p_pairs
++
;
e
=
e
->
next
;
}
}
}
void
get_key_list
(
List
<
TKey
>
*
p_keys
)
const
{
if
(
unlikely
(
!
hash_table
))
{
return
;
}
for
(
int
i
=
0
;
i
<
(
1
<<
hash_table_power
);
i
++
)
{
Element
*
e
=
hash_table
[
i
];
while
(
e
)
{
p_keys
->
push_back
(
e
->
pair
.
key
);
r_keys
->
push_back
(
e
->
pair
.
key
);
e
=
e
->
next
;
}
}
...
...
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