mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 22:59:47 -06:00
Common/MathUtil: Remove MathFloatVectorSum()
This isn't used anywhere and not really a generic utility, so we can get rid of it. This also lets us remove MathUtil.cpp, since this was the only thing within that file.
This commit is contained in:
@ -80,7 +80,6 @@ add_library(common
|
|||||||
Logging/Log.h
|
Logging/Log.h
|
||||||
Logging/LogManager.cpp
|
Logging/LogManager.cpp
|
||||||
Logging/LogManager.h
|
Logging/LogManager.h
|
||||||
MathUtil.cpp
|
|
||||||
MathUtil.h
|
MathUtil.h
|
||||||
Matrix.cpp
|
Matrix.cpp
|
||||||
Matrix.h
|
Matrix.h
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
// Copyright 2008 Dolphin Emulator Project
|
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
#include "Common/MathUtil.h"
|
|
||||||
|
|
||||||
#include <numeric>
|
|
||||||
|
|
||||||
// Calculate sum of a float list
|
|
||||||
float MathFloatVectorSum(const std::vector<float>& Vec)
|
|
||||||
{
|
|
||||||
return std::accumulate(Vec.begin(), Vec.end(), 0.0f);
|
|
||||||
}
|
|
@ -8,7 +8,6 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
|
||||||
@ -188,8 +187,6 @@ private:
|
|||||||
|
|
||||||
} // namespace MathUtil
|
} // namespace MathUtil
|
||||||
|
|
||||||
float MathFloatVectorSum(const std::vector<float>&);
|
|
||||||
|
|
||||||
// Rounds down. 0 -> undefined
|
// Rounds down. 0 -> undefined
|
||||||
constexpr int IntLog2(u64 val)
|
constexpr int IntLog2(u64 val)
|
||||||
{
|
{
|
||||||
|
@ -773,7 +773,6 @@
|
|||||||
<ClCompile Include="Common\LdrWatcher.cpp" />
|
<ClCompile Include="Common\LdrWatcher.cpp" />
|
||||||
<ClCompile Include="Common\Logging\ConsoleListenerWin.cpp" />
|
<ClCompile Include="Common\Logging\ConsoleListenerWin.cpp" />
|
||||||
<ClCompile Include="Common\Logging\LogManager.cpp" />
|
<ClCompile Include="Common\Logging\LogManager.cpp" />
|
||||||
<ClCompile Include="Common\MathUtil.cpp" />
|
|
||||||
<ClCompile Include="Common\Matrix.cpp" />
|
<ClCompile Include="Common\Matrix.cpp" />
|
||||||
<ClCompile Include="Common\MemArenaWin.cpp" />
|
<ClCompile Include="Common\MemArenaWin.cpp" />
|
||||||
<ClCompile Include="Common\MemoryUtil.cpp" />
|
<ClCompile Include="Common\MemoryUtil.cpp" />
|
||||||
|
Reference in New Issue
Block a user