Reduce Beast public interface and eliminate unused code:

Beast includes a lot of code for encapsulating cross-platform differences
which are not used or needed by rippled. Additionally, a lot of that code
implements functionality that is available from the standard library.

This moves away from custom implementations of features that the standard
library provides and reduces the number of platform-specific interfaces
andfeatures that Beast makes available.

Highlights include:
* Use std:: instead of beast implementations when possible
* Reduce the use of beast::String in public interfaces
* Remove Windows-specific COM and Registry code
* Reduce the public interface of beast::File
* Reduce the public interface of beast::SystemStats
* Remove unused sysctl/getsysinfo functions
* Remove beast::Logger
This commit is contained in:
Nik Bougalis
2014-10-13 14:20:54 -07:00
committed by Vinnie Falco
parent feb997481c
commit e005cfd70e
86 changed files with 361 additions and 7905 deletions

View File

@@ -274,8 +274,6 @@
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\crypto\base64.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\crypto\BinaryEncoding.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\crypto\Crypto.unity.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
@@ -290,9 +288,6 @@
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\crypto\impl\sha2\sha2.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\crypto\impl\UnsignedInteger.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\crypto\MurmurHash.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\crypto\Sha256.h">
@@ -300,16 +295,6 @@
<ClCompile Include="..\..\src\beast\beast\crypto\tests\base64.test.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\crypto\tests\BinaryEncoding.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\crypto\tests\UnsignedInteger.test.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\crypto\UnsignedInteger.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\crypto\UnsignedIntegerCalc.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\cxx14\algorithm.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\cxx14\config.h">
@@ -515,10 +500,6 @@
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\containers\ElementComparator.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\containers\LinkedListPointer.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\containers\ScopedValueSetter.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\core.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\core.unity.cpp">
@@ -561,35 +542,13 @@
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\files\FileOutputStream.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\files\FileSearchPath.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\files\FileSearchPath.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\files\RandomAccessFile.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\files\RandomAccessFile.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\files\TemporaryFile.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\files\TemporaryFile.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\logging\Logger.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\logging\Logger.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\maths\Math.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\maths\Random.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\maths\Random.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\maths\Range.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\memory\MemoryBlock.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
@@ -602,8 +561,6 @@
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\misc\Result.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\misc\WindowsRegistry.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\native\BasicNativeHeaders.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\native\bsd_Files.cpp">
@@ -636,14 +593,9 @@
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\native\posix_SharedCode.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\native\win32_ComSmartPtr.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\native\win32_Files.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\module\core\native\win32_Registry.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\module\core\native\win32_SystemStats.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
@@ -696,8 +648,6 @@
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\threads\CriticalSection.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\threads\DynamicLibrary.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\threads\Process.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\threads\ScopedLock.h">
@@ -849,8 +799,6 @@
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\smart_ptr\SharedPtr.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\StaticAssert.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\streams\abstract_ostream.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\streams\basic_abstract_ostream.h">
@@ -935,9 +883,6 @@
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\threads\Stoppable.h">
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\threads\tests\Atomic.test.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\threads\tests\ServiceQueue.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
@@ -1004,9 +949,6 @@
<ClCompile Include="..\..\src\beast\beast\utility\impl\PropertyStream.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\utility\impl\StaticObject.cpp">
<ExcludedFromBuild>True</ExcludedFromBuild>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\utility\Journal.h">
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\utility\LeakChecked.h">

View File

@@ -789,9 +789,6 @@
<ClInclude Include="..\..\src\beast\beast\crypto\base64.h">
<Filter>beast\crypto</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\crypto\BinaryEncoding.h">
<Filter>beast\crypto</Filter>
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\crypto\Crypto.unity.cpp">
<Filter>beast\crypto</Filter>
</ClCompile>
@@ -807,9 +804,6 @@
<ClInclude Include="..\..\src\beast\beast\crypto\impl\sha2\sha2.h">
<Filter>beast\crypto\impl\sha2</Filter>
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\crypto\impl\UnsignedInteger.cpp">
<Filter>beast\crypto\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\crypto\MurmurHash.h">
<Filter>beast\crypto</Filter>
</ClInclude>
@@ -819,18 +813,6 @@
<ClCompile Include="..\..\src\beast\beast\crypto\tests\base64.test.cpp">
<Filter>beast\crypto\tests</Filter>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\crypto\tests\BinaryEncoding.cpp">
<Filter>beast\crypto\tests</Filter>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\crypto\tests\UnsignedInteger.test.cpp">
<Filter>beast\crypto\tests</Filter>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\crypto\UnsignedInteger.h">
<Filter>beast\crypto</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\crypto\UnsignedIntegerCalc.h">
<Filter>beast\crypto</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\cxx14\algorithm.h">
<Filter>beast\cxx14</Filter>
</ClInclude>
@@ -1092,12 +1074,6 @@
<ClInclude Include="..\..\src\beast\beast\module\core\containers\ElementComparator.h">
<Filter>beast\module\core\containers</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\containers\LinkedListPointer.h">
<Filter>beast\module\core\containers</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\containers\ScopedValueSetter.h">
<Filter>beast\module\core\containers</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\core.h">
<Filter>beast\module\core</Filter>
</ClInclude>
@@ -1149,42 +1125,15 @@
<ClInclude Include="..\..\src\beast\beast\module\core\files\FileOutputStream.h">
<Filter>beast\module\core\files</Filter>
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\files\FileSearchPath.cpp">
<Filter>beast\module\core\files</Filter>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\files\FileSearchPath.h">
<Filter>beast\module\core\files</Filter>
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\files\RandomAccessFile.cpp">
<Filter>beast\module\core\files</Filter>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\files\RandomAccessFile.h">
<Filter>beast\module\core\files</Filter>
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\files\TemporaryFile.cpp">
<Filter>beast\module\core\files</Filter>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\files\TemporaryFile.h">
<Filter>beast\module\core\files</Filter>
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\logging\Logger.cpp">
<Filter>beast\module\core\logging</Filter>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\logging\Logger.h">
<Filter>beast\module\core\logging</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\maths\Math.h">
<Filter>beast\module\core\maths</Filter>
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\maths\Random.cpp">
<Filter>beast\module\core\maths</Filter>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\module\core\maths\Random.h">
<Filter>beast\module\core\maths</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\maths\Range.h">
<Filter>beast\module\core\maths</Filter>
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\memory\MemoryBlock.cpp">
<Filter>beast\module\core\memory</Filter>
</ClCompile>
@@ -1200,9 +1149,6 @@
<ClInclude Include="..\..\src\beast\beast\module\core\misc\Result.h">
<Filter>beast\module\core\misc</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\misc\WindowsRegistry.h">
<Filter>beast\module\core\misc</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\native\BasicNativeHeaders.h">
<Filter>beast\module\core\native</Filter>
</ClInclude>
@@ -1242,15 +1188,9 @@
<ClInclude Include="..\..\src\beast\beast\module\core\native\posix_SharedCode.h">
<Filter>beast\module\core\native</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\native\win32_ComSmartPtr.h">
<Filter>beast\module\core\native</Filter>
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\module\core\native\win32_Files.cpp">
<Filter>beast\module\core\native</Filter>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\module\core\native\win32_Registry.cpp">
<Filter>beast\module\core\native</Filter>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\module\core\native\win32_SystemStats.cpp">
<Filter>beast\module\core\native</Filter>
</ClCompile>
@@ -1314,9 +1254,6 @@
<ClInclude Include="..\..\src\beast\beast\module\core\threads\CriticalSection.h">
<Filter>beast\module\core\threads</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\threads\DynamicLibrary.h">
<Filter>beast\module\core\threads</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\module\core\threads\Process.h">
<Filter>beast\module\core\threads</Filter>
</ClInclude>
@@ -1506,9 +1443,6 @@
<ClInclude Include="..\..\src\beast\beast\smart_ptr\SharedPtr.h">
<Filter>beast\smart_ptr</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\StaticAssert.h">
<Filter>beast</Filter>
</ClInclude>
<ClInclude Include="..\..\src\beast\beast\streams\abstract_ostream.h">
<Filter>beast\streams</Filter>
</ClInclude>
@@ -1620,9 +1554,6 @@
<ClInclude Include="..\..\src\beast\beast\threads\Stoppable.h">
<Filter>beast\threads</Filter>
</ClInclude>
<ClCompile Include="..\..\src\beast\beast\threads\tests\Atomic.test.cpp">
<Filter>beast\threads\tests</Filter>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\threads\tests\ServiceQueue.cpp">
<Filter>beast\threads\tests</Filter>
</ClCompile>
@@ -1710,9 +1641,6 @@
<ClCompile Include="..\..\src\beast\beast\utility\impl\PropertyStream.cpp">
<Filter>beast\utility\impl</Filter>
</ClCompile>
<ClCompile Include="..\..\src\beast\beast\utility\impl\StaticObject.cpp">
<Filter>beast\utility\impl</Filter>
</ClCompile>
<ClInclude Include="..\..\src\beast\beast\utility\Journal.h">
<Filter>beast\utility</Filter>
</ClInclude>