2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-05 16:27:27 +00:00

chore: remove duplicated alignment utility method

This commit is contained in:
Jan
2025-04-19 16:00:42 +02:00
parent 785cf8c025
commit 9f738da517
2 changed files with 7 additions and 20 deletions

View File

@@ -1,13 +0,0 @@
#pragma once
class AlignmentUtils
{
public:
template<typename T> static T Align(T number, T alignmentValue)
{
if (alignmentValue == 0)
return number;
return (number + (alignmentValue - 1)) / alignmentValue * alignmentValue;
}
};