Skip to content

Commit

Permalink
Remove pointless code
Browse files Browse the repository at this point in the history
  • Loading branch information
ZehMatt committed Sep 5, 2024
1 parent 73b9e9c commit c7d2902
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions zasm/include/zasm/program/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,6 @@ namespace zasm
};
ZASM_ENABLE_ENUM_OPERATORS(NodeFlags);

template<typename T> constexpr std::size_t TypeHash()
{
std::size_t result{ 14695981039346656037 };

#ifdef _MSC_VER
# define F __FUNCSIG__
#else
# define F __PRETTY_FUNCTION__
#endif

for (const auto& c : F)
{
result ^= c;
result *= 1099511628211;
}

return result;
}

template<typename T> constexpr std::size_t constexpr_hash = TypeHash<std::decay_t<T>>();

/// <summary>
/// A type to hold data such as Instruction, Label, Data etc. within a doubly
/// linked list managed by the Program. The data is internally stored as a variant
Expand Down

0 comments on commit c7d2902

Please sign in to comment.