Revision: 56930
http://sourceforge.net/p/brlcad/code/56930
Author: brlcad
Date: 2013-08-18 16:44:50 +0000 (Sun, 18 Aug 2013)
Log Message:
-----------
now the lame itoa() function is unused, so we can remove it and it's static
buffer evilness. mark the other functions static also lets the compiler
discover that printPoints() is unused, so we remove that too.
Modified Paths:
--------------
brlcad/trunk/src/conv/3dm/3dm-g.cpp
Modified: brlcad/trunk/src/conv/3dm/3dm-g.cpp
===================================================================
--- brlcad/trunk/src/conv/3dm/3dm-g.cpp 2013-08-18 16:41:44 UTC (rev 56929)
+++ brlcad/trunk/src/conv/3dm/3dm-g.cpp 2013-08-18 16:44:50 UTC (rev 56930)
@@ -52,33 +52,8 @@
REGION_CNT_MAP region_cnt_map;
MEMBER_MAP member_map;
-char *
-itoa(int num)
-{
- static char line[10];
- sprintf(line, "%d", num);
- return line;
-}
-
-
-void
-printPoints(struct rt_brep_internal* bi, ON_TextLog* dump)
-{
- ON_Brep* brep = bi->brep;
- if (brep) {
- const int count = brep->m_V.Count();
- for (int i = 0; i < count; i++) {
- ON_BrepVertex& bv = brep->m_V[i];
- bv.Dump(*dump);
- }
- } else {
- dump->Print("brep was NULL!\n");
- }
-}
-
-
-size_t
+static size_t
RegionCnt(std::string &name)
{
REGION_CNT_MAP::iterator iter = region_cnt_map.find(name);
@@ -95,7 +70,7 @@
}
-void
+static void
MapRegion(ONX_Model &model, std::string ®ion_name, int layer_index)
{
char uuidstr[50];
@@ -113,7 +88,7 @@
}
-void
+static void
MapLayer(std::string &layer_name, std::string &uuid, std::string &parent_uuid)
{
layer_uuid_name_map.insert(std::pair<std::string, std::string>(uuid,
layer_name));
@@ -136,7 +111,7 @@
}
-void
+static void
BuildHierarchy(struct rt_wdb* outfp, std::string &uuid, ON_TextLog* dump)
{
static long groupcnt = 1;
@@ -182,7 +157,7 @@
}
-void
+static void
BuildHierarchy(struct rt_wdb* outfp, ON_TextLog* dump)
{
std::string root_uuid = "00000000-0000-0000-0000-000000000000";
@@ -194,7 +169,7 @@
}
-void
+static void
ProcessLayers(ONX_Model &model, ON_TextLog* dump)
{
char name[256];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits