RNA/UI - Reset Settings to Default Values
[blender.git] / source / blender / editors / animation / drivers.c
index bc7005b82c4047c62d665290b3bfda4b6adcb0d7..59e52c0d489d47c02024674fa9b3feba8af60f3b 100644 (file)
@@ -581,47 +581,4 @@ void ANIM_OT_paste_driver_button (wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
-
-/* Copy to Clipboard Button Operator ------------------------ */
-
-static int copy_clipboard_button_exec(bContext *C, wmOperator *op)
-{
-       PointerRNA ptr;
-       PropertyRNA *prop= NULL;
-       char *path;
-       short success= 0;
-       int index;
-
-       /* try to create driver using property retrieved from UI */
-       memset(&ptr, 0, sizeof(PointerRNA));
-       uiAnimContextProperty(C, &ptr, &prop, &index);
-
-       if (ptr.data && prop) {
-               path= RNA_path_from_ID_to_property(&ptr, prop);
-               
-               if (path) {
-                       WM_clipboard_text_set(path, FALSE);
-                       MEM_freeN(path);
-               }
-       }
-
-       /* since we're just copying, we don't really need to do anything else...*/
-       return (success)? OPERATOR_FINISHED: OPERATOR_CANCELLED;
-}
-
-void ANIM_OT_copy_clipboard_button(wmOperatorType *ot)
-{
-       /* identifiers */
-       ot->name= "Copy Data Path";
-       ot->idname= "ANIM_OT_copy_clipboard_button";
-       ot->description= "Copy the RNA data path for this property to the clipboard.";
-
-       /* callbacks */
-       ot->exec= copy_clipboard_button_exec;
-       //op->poll= ??? // TODO: need to have some valid property before this can be done
-
-       /* flags */
-       ot->flag= OPTYPE_REGISTER;
-}
-
 /* ************************************************** */