summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
Diffstat (limited to 'grc')
-rw-r--r--grc/python/Connection.py3
-rw-r--r--grc/python/Constants.py1
-rw-r--r--grc/python/Generator.py4
-rw-r--r--grc/python/flow_graph.tmpl11
4 files changed, 1 insertions, 18 deletions
diff --git a/grc/python/Connection.py b/grc/python/Connection.py
index 341dd2d821..218baf0743 100644
--- a/grc/python/Connection.py
+++ b/grc/python/Connection.py
@@ -31,9 +31,6 @@ class Connection(_Connection, _GUIConnection):
def is_msg(self):
return self.get_source().get_type() == self.get_sink().get_type() == 'msg'
- def is_message(self):
- return self.get_source().get_type() == self.get_sink().get_type() == 'message'
-
def validate(self):
"""
Validate the connections.
diff --git a/grc/python/Constants.py b/grc/python/Constants.py
index 09c3081967..1a65caf1c0 100644
--- a/grc/python/Constants.py
+++ b/grc/python/Constants.py
@@ -58,7 +58,6 @@ CORE_TYPES = ( #name, key, sizeof, color
('Integer 16', 's16', 2, '#FFFF66'),
('Integer 8', 's8', 1, '#FF66FF'),
('Message Queue', 'msg', 0, '#777777'),
- ('Async Message', 'message', 0, '#777777'),
('Wildcard', '', 0, '#FFFFFF'),
)
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 912ce13752..f8490227a7 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -122,9 +122,8 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''')
#list of regular blocks (all blocks minus the special ones)
blocks = filter(lambda b: b not in (imports + parameters), blocks)
#list of connections where each endpoint is enabled
- connections = filter(lambda c: not (c.is_msg() or c.is_message()), self._flow_graph.get_enabled_connections())
+ connections = filter(lambda c: not c.is_msg(), self._flow_graph.get_enabled_connections())
messages = filter(lambda c: c.is_msg(), self._flow_graph.get_enabled_connections())
- messages2 = filter(lambda c: c.is_message(), self._flow_graph.get_enabled_connections())
#list of variable names
var_ids = [var.get_id() for var in parameters + variables]
#prepend self.
@@ -149,7 +148,6 @@ Add a Misc->Throttle block to your flow graph to avoid CPU congestion.''')
'blocks': blocks,
'connections': connections,
'messages': messages,
- 'messages2': messages2,
'generate_options': self._generate_options,
'var_id2cbs': var_id2cbs,
}
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index 086c478c6a..6e504815a6 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -192,17 +192,6 @@ gr.io_signaturev($(len($io_sigs)), $(len($io_sigs)), [$(', '.join($size_strs))])
self.connect($make_port_sig($source), $make_port_sig($sink))
#end if
#end for
-########################################################
-##Create Asynch Message Connections
-########################################################
-#if $messages2
- $DIVIDER
- # Asynch Message Connections
- $DIVIDER
-#end if
-#for $msg in $messages2
- self.msg_connect(self.$msg.get_source().get_parent().get_id(), "$msg.get_source().get_name()", self.$msg.get_sink().get_parent().get_id(), "$msg.get_sink().get_name()")
-#end for
########################################################
# QT sink close method reimplementation