[PATCH] cosmetic: Remove use of C++ style comments

Chris Michael cp.michael at samsung.com
Thu Dec 3 09:23:12 PST 2015


Patch updated to remove dead lines as suggested by Daniel Stone

Signed-off-by: Chris Michael <cp.michael at samsung.com>
---
 src/compositor-rdp.c      | 1 -
 src/vaapi-recorder.c      | 2 +-
 tests/weston-test.c       | 2 +-
 xwayland/window-manager.c | 2 --
 4 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
index 1098f01..33805c1 100644
--- a/src/compositor-rdp.c
+++ b/src/compositor-rdp.c
@@ -717,7 +717,6 @@ struct rdp_to_xkb_keyboard_layout rdp_keyboards[] = {
 	{KBD_NORWEGIAN, "no", 0},
 	{KBD_POLISH_PROGRAMMERS, "pl", 0},
 	{KBD_POLISH_214, "pl", "qwertz"},
-	// {KBD_PORTUGUESE_BRAZILIAN_ABN0416, 0},
 	{KBD_ROMANIAN, "ro", 0},
 	{KBD_RUSSIAN, "ru", 0},
 	{KBD_RUSSIAN_TYPEWRITER, "ru", "typewriter"},
diff --git a/src/vaapi-recorder.c b/src/vaapi-recorder.c
index 1fd7ebe..1228f7d 100644
--- a/src/vaapi-recorder.c
+++ b/src/vaapi-recorder.c
@@ -200,7 +200,7 @@ bitstream_put_ue(struct bitstream *bs, unsigned int val)
 		size_in_bits++;
 	}
 
-	bitstream_put_ui(bs, 0, size_in_bits - 1); // leading zero
+	bitstream_put_ui(bs, 0, size_in_bits - 1); /* leading zero */
 	bitstream_put_ui(bs, val, size_in_bits);
 }
 
diff --git a/tests/weston-test.c b/tests/weston-test.c
index b6ae91a..03e2c54 100644
--- a/tests/weston-test.c
+++ b/tests/weston-test.c
@@ -390,7 +390,7 @@ test_screenshot_frame_notify(struct wl_listener *listener, void *data)
 		return;
 	}
 
-	// FIXME: Needs to handle output transformations
+	/* FIXME: Needs to handle output transformations */
 
 	compositor->renderer->read_pixels(output,
 					  compositor->read_format,
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index 9398d24..dd873df 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -1715,8 +1715,6 @@ weston_wm_destroy_cursors(struct weston_wm *wm)
 static int
 get_cursor_for_location(enum theme_location location)
 {
-	// int location = theme_get_location(t, x, y, width, height, 0);
-
 	switch (location) {
 		case THEME_LOCATION_RESIZING_TOP:
 			return XWM_CURSOR_TOP;
-- 
2.6.2



More information about the wayland-devel mailing list