summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pfmtlog.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-05-31 23:49:55 +0200
committer couriersud <couriersud@arcor.de>2016-06-07 21:44:15 +0200
commit81880659d23b36598f498e32f24fd6a4cecbd80b (patch)
treed7cd226d8335ba06fab273b1616231881ecfe766 /src/lib/netlist/plib/pfmtlog.cpp
parent3d3f5761f0b0419581762f72ea0984e047d3e55c (diff)
- More code cleanup.
- Dead code removal and minor refactoring. - Simplify. Align naming with stl. Fix somed pedantic warnings. - More STL compatability. - Remove ATTR_HOT and ATTR_COLD. Refactored netlist_time. - Fix long standing workaround which would ignore policy of change-only" propagation. - Rewrote for loops to use auto : semantics. - Truthtable cleanup. (nw) - Get rid of nl_math. Remove nl_util.h and moved contents to plib/putil.h. - Fix standalone build. Refactor ptypes.h. [Couriersud]
Diffstat (limited to 'src/lib/netlist/plib/pfmtlog.cpp')
-rw-r--r--src/lib/netlist/plib/pfmtlog.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/lib/netlist/plib/pfmtlog.cpp b/src/lib/netlist/plib/pfmtlog.cpp
index 40ab47209ba..b10ab7f6a2b 100644
--- a/src/lib/netlist/plib/pfmtlog.cpp
+++ b/src/lib/netlist/plib/pfmtlog.cpp
@@ -48,30 +48,6 @@ pfmt::~pfmt()
pfree_array(m_str);
}
-#if 0
-void pformat::format_element(const char *f, const char *l, const char *fmt_spec, ...)
-{
- va_list ap;
- va_start(ap, fmt_spec);
- char fmt[30] = "%";
- char search[10] = "";
- char buf[1024];
- strcat(fmt, f);
- strcat(fmt, l);
- strcat(fmt, fmt_spec);
- int nl = vsprintf(buf, fmt, ap);
- m_arg++;
- int sl = sprintf(search, "%%%d", m_arg);
- char *p = strstr(m_str, search);
- if (p != nullptr)
- {
- // Make room
- memmove(p+nl, p+sl, strlen(p) + 1 - sl);
- memcpy(p, buf, nl);
- }
- va_end(ap);
-}
-#else
void pfmt::format_element(const char *f, const char *l, const char *fmt_spec, ...)
{
va_list ap;
@@ -166,4 +142,3 @@ void pfmt::format_element(const char *f, const char *l, const char *fmt_spec, .
}
-#endif