[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r3993 - gnuradio/branches/developers/eb/mb/mblock/src/
From: |
eb |
Subject: |
[Commit-gnuradio] r3993 - gnuradio/branches/developers/eb/mb/mblock/src/lib |
Date: |
Thu, 16 Nov 2006 14:42:14 -0700 (MST) |
Author: eb
Date: 2006-11-16 14:42:14 -0700 (Thu, 16 Nov 2006)
New Revision: 3993
Modified:
gnuradio/branches/developers/eb/mb/mblock/src/lib/mb_mblock.cc
Log:
dead code cleanup
Modified: gnuradio/branches/developers/eb/mb/mblock/src/lib/mb_mblock.cc
===================================================================
--- gnuradio/branches/developers/eb/mb/mblock/src/lib/mb_mblock.cc
2006-11-16 19:15:27 UTC (rev 3992)
+++ gnuradio/branches/developers/eb/mb/mblock/src/lib/mb_mblock.cc
2006-11-16 21:42:14 UTC (rev 3993)
@@ -26,54 +26,7 @@
#include <mb_mblock.h>
#include <mb_mblock_impl.h>
-#if 0
-static pmt_t s_self = pmt_intern("self");
-////////////////////////////////////////////////////////////////////////
-
-inline static bool
-port_is_defined(mb_mblock_impl *impl, pmt_t name)
-{
- return pmt_eq(name, s_self) || impl->d_port_map.count(name) != 0;
-}
-
-inline static bool
-port_is_defined(mb_mblock_impl *impl, const std::string &name)
-{
- return port_is_defined(impl, pmt_intern(name));
-}
-
-inline static bool
-comp_is_defined(mb_mblock_impl *impl, pmt_t name)
-{
- return pmt_eq(name, s_self) || impl->d_comp_map.count(name) != 0;
-}
-
-inline static bool
-comp_is_defined(mb_mblock_impl *impl, const std::string &name)
-{
- return comp_is_defined(impl, pmt_intern(name));
-}
-
-
-static void
-no_such_comp(const std::string &comp_name)
-{
- std::string msg = "No such component: " + comp_name;
- throw std::invalid_argument(msg);
-}
-
-static void
-already_connected(const std::string &comp_name, const std::string &port_name)
-{
- std::string msg = "Port is already connected: " + comp_name + ":" +
port_name;
- throw std::invalid_argument(msg);
-}
-
-#endif
-
-////////////////////////////////////////////////////////////////////////
-
mb_mblock::mb_mblock()
: d_impl(new mb_mblock_impl(this))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r3993 - gnuradio/branches/developers/eb/mb/mblock/src/lib,
eb <=