Skip to content

Commit

Permalink
Remove assertions for unused variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Sep 15, 2017
1 parent 5a052d6 commit c6dd83c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class AddTwoIntsServer(rclpy.Node):
def __init__(self):
super().__init__('add_two_ints_server')
self.srv = self.create_service(AddTwoInts, 'add_two_ints', self.add_two_ints_callback)
assert self.srv # prevent unused variable warning

def add_two_ints_callback(self, request, response):
response.sum = request.a + request.b
Expand Down
1 change: 0 additions & 1 deletion demo_nodes_py/demo_nodes_py/topics/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Listener(rclpy.Node):
def __init__(self):
super().__init__('listener')
self.sub = self.create_subscription(String, 'chatter', self.chatter_callback)
assert self.sub # prevent unused warning

def chatter_callback(self, msg):
print('I heard: [%s]' % msg.data)
Expand Down
1 change: 0 additions & 1 deletion demo_nodes_py/demo_nodes_py/topics/listener_qos.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def __init__(self, qos_profile):
super().__init__('listener_qos')
self.sub = self.create_subscription(
String, 'chatter', self.chatter_callback, qos_profile=qos_profile)
assert self.sub # prevent unused warning

def chatter_callback(self, msg):
print('I heard: [%s]' % msg.data)
Expand Down

0 comments on commit c6dd83c

Please sign in to comment.