Revision: 75257
          http://sourceforge.net/p/brlcad/code/75257
Author:   starseeker
Date:     2020-04-02 20:40:11 +0000 (Thu, 02 Apr 2020)
Log Message:
-----------
Shouldn't need to check this

Modified Paths:
--------------
    brlcad/branches/tcltk86/src/libtclcad/tclcadAutoPath.c

Modified: brlcad/branches/tcltk86/src/libtclcad/tclcadAutoPath.c
===================================================================
--- brlcad/branches/tcltk86/src/libtclcad/tclcadAutoPath.c      2020-04-02 
20:38:15 UTC (rev 75256)
+++ brlcad/branches/tcltk86/src/libtclcad/tclcadAutoPath.c      2020-04-02 
20:40:11 UTC (rev 75257)
@@ -41,38 +41,6 @@
 
 #define MAX_BUF 2048
 
-/* helper routine to determine whether the full 'path' includes a
- * directory named 'src'.  this is used to determine whether a
- * particular invocation is being run from the BRL-CAD source
- * directories or from some install directory.
- *
- * returns a pointer to the subpath that contains the 'src' directory.
- * e.g. provided /some/path/to/src/dir/blah will return /some/path/to
- */
-static const char *
-path_to_src(const char *path)
-{
-    static char buffer[MAX_BUF] = {0};
-    char *match = NULL;
-
-    if (!path) {
-       return NULL;
-    }
-    if (strlen(path)+2 > MAX_BUF) {
-       /* path won't fit */
-       return NULL;
-    }
-
-    snprintf(buffer, MAX_BUF, "%s%c", path, BU_DIR_SEPARATOR);
-
-    match = strstr(buffer, "/src/");
-    if (match) {
-       *(match) = '\0';
-       return buffer;
-    }
-    return NULL;
-}
-
 /* Appends a new path to the path list, preceded by BU_PATH_SEPARATOR.
  *
  * The path is specified as a sequence of string arguments, one per
@@ -233,9 +201,6 @@
        join_path(&auto_path, data, "tclscripts", "lod", NULL);
     }
 
-    /* are we running uninstalled? */
-    srcpath = path_to_src(which_argv);
-
     /* be sure to check installation paths even if we aren't running from 
there */
     if (!from_installed) {
        join_path(&auto_path, root, "lib", NULL);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to