mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 03:57:51 +03:00
removed unnessary bits that cmake should be doing for us; replace Misc::gcd with std::gcd
This commit is contained in:
parent
c62546fb12
commit
82431b752d
5 changed files with 7 additions and 19 deletions
|
@ -86,7 +86,7 @@ add_component_dir (esmterrain
|
|||
)
|
||||
|
||||
add_component_dir (misc
|
||||
gcd constants utf8stream stringops resourcehelpers rng messageformatparser weakcache
|
||||
constants utf8stream stringops resourcehelpers rng messageformatparser weakcache
|
||||
)
|
||||
|
||||
add_component_dir (debug
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
#ifndef MISC_GCD_H
|
||||
#define MISC_GCD_H
|
||||
|
||||
namespace Misc
|
||||
{
|
||||
// TODO: replace to the std::gcd() when the C++17 will be available.
|
||||
int gcd(int a, int b)
|
||||
{
|
||||
return b == 0 ? a : gcd(b, a % b);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue