Revision: 77438
http://sourceforge.net/p/brlcad/code/77438
Author: brlcad
Date: 2020-10-15 05:10:12 +0000 (Thu, 15 Oct 2020)
Log Message:
-----------
had maintenance cost, not immediately actionable. let repo hold it.
Modified Paths:
--------------
brlcad/trunk/src/libdm/dm_plugins.cpp
Modified: brlcad/trunk/src/libdm/dm_plugins.cpp
===================================================================
--- brlcad/trunk/src/libdm/dm_plugins.cpp 2020-10-15 05:05:20 UTC (rev
77437)
+++ brlcad/trunk/src/libdm/dm_plugins.cpp 2020-10-15 05:10:12 UTC (rev
77438)
@@ -107,30 +107,6 @@
if (!separator)
separator = " ";
- // TODO - the first method below is independent of specific backends,
- // and preferable for that reason. Unfortunately, Archer is calling
- // dm_list_tcl, which calls this function, and implicitly expects the
- // returned list to be in priority order - it takes the first one
- // assuming it is the "best". What should happen is that Archer should
- // encode it's own preferences at the app level, but for the moment
- // respect the priority ordering in the returned list to keep Archer
- // working
-#if 0
- std::map<std::string, const struct dm *> *dmb = (std::map<std::string,
const struct dm *> *)dm_backends;
- std::map<std::string, const struct dm *>::iterator d_it;
- for (d_it = dmb->begin(); d_it != dmb->end(); d_it++) {
- std::string key = d_it->first;
- const struct dm *d = d_it->second;
- if (strlen(bu_vls_cstr(list)) > 0)
- bu_vls_printf(list, "%s", separator);
- const char *dname = dm_get_name(d);
- if (dname)
- bu_vls_printf(list, "%s", dname);
- }
- if (strlen(bu_vls_cstr(list)) > 0)
- bu_vls_printf(list, "%s", separator);
- bu_vls_printf(list, "nu");
-#else
static const char *priority_list[] = {"osgl", "wgl", "ogl", "X", "tk",
"nu"};
std::map<std::string, const struct dm *> *dmb = (std::map<std::string,
const struct dm *> *)dm_backends;
@@ -154,7 +130,6 @@
i++;
b = priority_list[i];
}
-#endif
}
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