Beast clean up:

* Remove binding, dispatch handling and exit hooks in favor
  of std alternatives; remove crash-handling infrastructure,
  error message framework, system-specific process handling
  and Objective-C interop helpers.
* Simplify Beast function profiling
* Simplify beast::Time interface
* Simplify beast::String interface
* Simplify beast::File interface
This commit is contained in:
Nik Bougalis
2015-05-25 17:36:21 -07:00
parent 9cdc06ce43
commit 9930b12d9d
40 changed files with 96 additions and 3221 deletions

View File

@@ -23,38 +23,6 @@
namespace beast
{
enum
{
U_ISOFS_SUPER_MAGIC = 5,
U_MSDOS_SUPER_MAGIC = 2,
U_NFS_SUPER_MAGIC = 1,
U_SMB_SUPER_MAGIC = 8
};
//==============================================================================
bool File::copyInternal (const File& dest) const
{
FileInputStream in (*this);
if (dest.deleteFile())
{
{
FileOutputStream out (dest);
if (out.failedToOpen())
return false;
if (out.writeFromInputStream (in, -1) == getSize())
return true;
}
dest.deleteFile();
}
return false;
}
//==============================================================================
static File resolveXDGFolder (const char* const type, const char* const fallbackFolder)
{
@@ -88,9 +56,6 @@ static File resolveXDGFolder (const char* const type, const char* const fallback
return File (fallbackFolder);
}
const char* const* beast_argv = nullptr;
int beast_argc = 0;
File File::getSpecialLocation (const SpecialLocationType type)
{
switch (type)