Skip to content

Commit

Permalink
script_interface: Remove outdated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Jun 25, 2021
1 parent 6633e88 commit 23bce73
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/script_interface/get_value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,9 @@ template <> struct get_value_helper<std::unordered_map<int, Variant>, void> {
};

/* This allows direct retrieval of a shared_ptr to the object from
an ObjectId variant. If the type is a derived type, the type is
also checked.
We do a couple of checks: First we check if the id is actually the
empty id, which means None and is a valid value, represented by
an empty ptr.
If the id is not empty, we try to retrieve an instance for that id.
If it does not exist we throw, this means the caller supplied an id
with no corresponding instance.
If we can find an instance, we check if it has the right
type, and if so, we return it, otherwise we throw.
*/
* an ObjectRef variant. If the type is a derived type, the type is
* also checked.
*/
template <typename T>
struct get_value_helper<
std::shared_ptr<T>,
Expand Down

0 comments on commit 23bce73

Please sign in to comment.