aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/sdformat/no-absolute.patch
blob: 0a8620963d265082c57875cdec1d2c6c48d40ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff --git a/include/sdf/config.hh.in b/include/sdf/config.hh.in
index 456eb12c..9a9ce91d 100644
--- a/include/sdf/config.hh.in
+++ b/include/sdf/config.hh.in
@@ -47,12 +47,5 @@
 
 #cmakedefine SDFORMAT_DISABLE_CONSOLE_LOGFILE 1
 
-#ifndef SDF_SHARE_PATH
-#define SDF_SHARE_PATH _Pragma ("GCC warning \"'SDF_SHARE_PATH' macro is deprecated, use sdf::getSharePath() function instead. \"") "${CMAKE_INSTALL_FULL_DATAROOTDIR}/"
-#endif
-
-#ifndef SDF_VERSION_PATH
-#define SDF_VERSION_PATH _Pragma ("GCC warning \"'SDF_VERSION_PATH' macro is deprecated and should not be used. \"") "${CMAKE_INSTALL_FULL_DATAROOTDIR}/sdformat${PROJECT_VERSION_MAJOR}/${PROJECT_VERSION}"
-#endif
 
 #endif  // #ifndef SDF_CONFIG_HH_
diff --git a/src/SDF.cc b/src/SDF.cc
index 04fc5374..9cb98399 100644
--- a/src/SDF.cc
+++ b/src/SDF.cc
@@ -150,25 +150,8 @@ std::string findFile(sdf::Errors &_errors, const std::string &_filename,
     }
   }
 
-  // Next check the install path.
-  std::string path = sdf::filesystem::append(sdfSharePath(), filename);
-  if (sdf::filesystem::exists(path))
-  {
-    return path;
-  }
-
-  // Next check the versioned install path.
-  path = sdf::filesystem::append(sdfSharePath(),
-    "sdformat" + std::string(SDF_MAJOR_VERSION_STR),
-    sdf::SDF::Version(), filename);
-
-  if (sdf::filesystem::exists(path))
-  {
-    return path;
-  }
-
   // Finally check to see if the given file exists.
-  path = filename;
+  std::string path = filename;
   if (sdf::filesystem::exists(path))
   {
     return path;