Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-07 11:35:28 +0300
committerJacques Lucke <jacques@blender.org>2020-07-07 11:35:55 +0300
commit19d4e265b655982945464a6bc24b093e86e9b84b (patch)
tree0fb4d6b20d37ee1380031324235347e02b4e3b8d /source/blender/blenlib/BLI_set.hh
parent6e609f0eb0c51b955ed3002ecd82fb74136d2f9c (diff)
Cleanup: remove redundant comments
Searching in these files for "_as" will reveal a comment at the top, that explains what these methods are for. There is no need to duplicate that knowledge all over the place.
Diffstat (limited to 'source/blender/blenlib/BLI_set.hh')
-rw-r--r--source/blender/blenlib/BLI_set.hh31
1 files changed, 0 insertions, 31 deletions
diff --git a/source/blender/blenlib/BLI_set.hh b/source/blender/blenlib/BLI_set.hh
index bf981154da4..c5096f84c80 100644
--- a/source/blender/blenlib/BLI_set.hh
+++ b/source/blender/blenlib/BLI_set.hh
@@ -260,10 +260,6 @@ class Set {
{
return this->add_as(std::move(key));
}
-
- /**
- * Same as `add`, but accepts other key types that are supported by the hash function.
- */
template<typename ForwardKey> bool add_as(ForwardKey &&key)
{
return this->add__impl(std::forward<ForwardKey>(key), hash_(key));
@@ -303,10 +299,6 @@ class Set {
{
return this->contains_as(key);
}
-
- /**
- * Same as `contains`, but accepts other key types that are supported by the hash function.
- */
template<typename ForwardKey> bool contains_as(const ForwardKey &key) const
{
return this->contains__impl(key, hash_(key));
@@ -320,10 +312,6 @@ class Set {
{
return this->lookup_key_as(key);
}
-
- /**
- * Same as `lookup_key`, but accepts other key types that are supported by the hash function.
- */
template<typename ForwardKey> const Key &lookup_key_as(const ForwardKey &key) const
{
return this->lookup_key__impl(key, hash_(key));
@@ -337,11 +325,6 @@ class Set {
{
return this->lookup_key_default_as(key, default_value);
}
-
- /**
- * Same as `lookup_key_default`, but accepts other key types that are supported by the hash
- * function.
- */
template<typename ForwardKey>
const Key &lookup_key_default_as(const ForwardKey &key, const Key &default_key) const
{
@@ -360,11 +343,6 @@ class Set {
{
return this->lookup_key_ptr_as(key);
}
-
- /**
- * Same as `lookup_key_ptr`, but accepts other key types that are supported by the hash
- * function.
- */
template<typename ForwardKey> const Key *lookup_key_ptr_as(const ForwardKey &key) const
{
return this->lookup_key_ptr__impl(key, hash_(key));
@@ -379,10 +357,6 @@ class Set {
{
return this->remove_as(key);
}
-
- /**
- * Same as `remove`, but accepts other key types that are supported by the hash function.
- */
template<typename ForwardKey> bool remove_as(const ForwardKey &key)
{
return this->remove__impl(key, hash_(key));
@@ -395,11 +369,6 @@ class Set {
{
this->remove_contained_as(key);
}
-
- /**
- * Same as `remove_contained`, but accepts other key types that are supported by the hash
- * function.
- */
template<typename ForwardKey> void remove_contained_as(const ForwardKey &key)
{
this->remove_contained__impl(key, hash_(key));