Remove ExpandPath, ExePath from builder filesystem (not used). 81/210081/1
authorAnton Obzhirov <a.obzhirov@samsung.com>
Mon, 15 Jul 2019 14:08:48 +0000 (15:08 +0100)
committerAnton Obzhirov <a.obzhirov@samsung.com>
Mon, 15 Jul 2019 14:13:51 +0000 (15:13 +0100)
Change-Id: Idc06b0874dc75b0533349f978c0911674afc7e74

dali-toolkit/internal/builder/builder-filesystem.h

index 947f8ce..90a87fc 100755 (executable)
 #include <fstream>
 #include <sstream>
 
 #include <fstream>
 #include <sstream>
 
-#include <wordexp.h>
 #include <stdio.h>
 #include <unistd.h>
 
 #include <dali/devel-api/adaptor-framework/file-loader.h>
 
 #include <stdio.h>
 #include <unistd.h>
 
 #include <dali/devel-api/adaptor-framework/file-loader.h>
 
-inline std::string ExpandPath(const std::string &name)
-{
-  wordexp_t p;
-  char** w;
-  wordexp( name.c_str(), &p, 0 );
-  w = p.we_wordv;
-  std::stringstream s;
-  for (size_t i=0; i<p.we_wordc;i++ )
-  {
-    s << w[i];
-  }
-  wordfree( &p );
-  return s.str();
-}
-
-
-inline std::string ExePath(void)
-{
-  char buf[256];
-  ssize_t len = readlink("/proc/self/exe", buf, sizeof(buf) - 1);
-  len = len > 0 ? len : 0;
-  buf[len] = '\0';
-  return std::string(buf);
-}
-
 inline std::string GetFileContents(const std::string &fn)
 {
   std::streampos bufferSize = 0;
 inline std::string GetFileContents(const std::string &fn)
 {
   std::streampos bufferSize = 0;