Xcos MVC: add a test and use unnamed functions parameters
[scilab.git] / scilab / modules / scicos / src / cpp / view_scilab / BlockAdapter.cpp
index 1fee00d..ecdb52d 100644 (file)
@@ -125,19 +125,13 @@ struct gui
 
 struct doc
 {
-    static types::InternalType* get(const BlockAdapter& adaptor, const Controller& controller)
+    static types::InternalType* get(const BlockAdapter& adaptor, const Controller& /*controller*/)
     {
-        // silent unused parameter warnings
-        (void) controller;
-
         return adaptor.getDocContent();
     }
 
-    static bool set(BlockAdapter& adaptor, types::InternalType* v, Controller& controller)
+    static bool set(BlockAdapter& adaptor, types::InternalType* v, Controller& /*controller*/)
     {
-        // silent unused parameter warnings
-        (void) controller;
-
         adaptor.setDocContent(v->clone());
         return true;
     }