Commits

mitsuhiko  committed bdf408a

Removed unused leftover

  • Participants
  • Parent commits e03551f

Comments (0)

Files changed (1)

File neglect/cpplib/src/clib/platform.cpp

-#include <neglect/platform.h>
-#include <neglect/platform.hpp>
-
-using namespace neglect;
-
-extern "C" {
-
-    extern const char *neglect_platform_get_name()
-    {
-        return platform::name.c_str();
-    }
-
-    extern const char *neglect_platform_get_home_folder()
-    {
-        try {
-            return platform::get_home_folder().c_str();
-        }
-        catch (platform_exception &) {
-            return 0;
-        }
-    }
-
-    extern char *neglect_platform_get_settings_folder(const char *appname)
-    {
-        try {
-            std::string rv = platform::get_settings_folder(std::string(appname));
-            char *buf = (char *)malloc(rv.size());
-            if (!buf)
-                return 0;
-            std::copy(rv.begin(), rv.end(), buf);
-            return buf;
-        }
-        catch (neglect::platform_exception &) {
-            return 0;
-        }
-    }
-}