Xcos MVC: add a test and use unnamed functions parameters
[scilab.git] / scilab / modules / scicos / src / cpp / view_scilab / DiagramAdapter.cpp
index 395e70d..5b4ab7f 100644 (file)
@@ -227,20 +227,13 @@ struct version
 struct contrib
 {
 
-    static types::InternalType* get(const DiagramAdapter& adaptor, const Controller& controller)
+    static types::InternalType* get(const DiagramAdapter& adaptor, const Controller& /*controller*/)
     {
-        // silent unused parameter warnings
-        (void) controller;
-
         return adaptor.getContribContent();
     }
 
-    static bool set(DiagramAdapter& adaptor, types::InternalType* v, Controller& controller)
+    static bool set(DiagramAdapter& adaptor, types::InternalType* v, Controller& /*controller*/)
     {
-        // silent unused parameter warnings
-        (void) v;
-        (void) controller;
-
         adaptor.setContribContent(v->clone());
         return true;
     }