Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
6747d14d
Commit
6747d14d
authored
May 04, 2017
by
Mark OLESEN
Browse files
BUG: odd table size after shrink (issue
#460
)
- remove this unused method
parent
8dae0191
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/containers/HashTables/HashTable/HashTable.C
View file @
6747d14d
...
...
@@ -562,19 +562,6 @@ void Foam::HashTable<T, Key, Hash>::clearStorage()
}
template
<
class
T
,
class
Key
,
class
Hash
>
void
Foam
::
HashTable
<
T
,
Key
,
Hash
>::
shrink
()
{
const
label
newSize
=
HashTableCore
::
canonicalSize
(
nElmts_
);
if
(
newSize
<
tableSize_
)
{
// Avoid having the table disappear on us
resize
(
newSize
?
newSize
:
2
);
}
}
template
<
class
T
,
class
Key
,
class
Hash
>
void
Foam
::
HashTable
<
T
,
Key
,
Hash
>::
transfer
(
HashTable
<
T
,
Key
,
Hash
>&
ht
)
{
...
...
src/OpenFOAM/containers/HashTables/HashTable/HashTable.H
View file @
6747d14d
...
...
@@ -373,9 +373,6 @@ public:
// Equivalent to clear() followed by resize(0)
void
clearStorage
();
//- Shrink the allocated table to approx. twice number of elements
void
shrink
();
//- Transfer the contents of the argument table into this table
// and annul the argument table.
void
transfer
(
HashTable
<
T
,
Key
,
Hash
>&
ht
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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