Cleanup: ifdef function which is only used from ifdef-ed code
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 18 Aug 2016 08:36:06 +0000 (10:36 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 18 Aug 2016 08:36:06 +0000 (10:36 +0200)
source/blender/editors/interface/view2d_ops.c

index f095ba9a03d8c33347f851df973182f063bc777a..d2b2f12c1a5057a6a31f7f2068ac5781fb8c50ed 100644 (file)
@@ -127,6 +127,7 @@ static int view_pan_init(bContext *C, wmOperator *op)
        return 1;
 }
 
+#ifdef WITH_INPUT_NDOF
 static int view_pan_poll(bContext *C)
 {
        ARegion *ar = CTX_wm_region(C);
@@ -144,6 +145,7 @@ static int view_pan_poll(bContext *C)
        /* view can pan */
        return 1;
 }
+#endif
 
 /* apply transform to view (i.e. adjust 'cur' rect) */
 static void view_pan_apply_ex(bContext *C, v2dViewPanData *vpd, float dx, float dy)