Skip to content

Commit 8aa54a4

Browse files
authored
math: Remove duplicate cos() declaration
Looks like we were registering cos() twice.
1 parent ffbd6c4 commit 8aa54a4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/chaiscript/extras/math.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ namespace chaiscript {
1010
template<typename Ret, typename Param>
1111
ModulePtr cos(ModulePtr m = std::make_shared<Module>())
1212
{
13-
m->add(chaiscript::fun([](Param p){ return std::cos(p); }), "cos");
1413
m->add(chaiscript::fun([](Param p){ return std::cos(p); }), "cos");
1514
return m;
1615
}

0 commit comments

Comments
 (0)