Skip to content

Commit

Permalink
Remove IR_KNOBS and IR_BUTTONS ifdef codes
Browse files Browse the repository at this point in the history
Does not appear to be enabled.  VC has the code if we need them.
  • Loading branch information
starseeker committed Jan 6, 2025
1 parent 46dab1c commit 3e2e838
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 931 deletions.
3 changes: 0 additions & 3 deletions include/dm.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ DM_EXPORT extern int dm_Normal2Xy(struct dm *dmp,
DM_EXPORT extern void dm_fogHint(struct dm *dmp,
int fastfog);
DM_EXPORT extern int dm_processOptions(struct dm *dmp, struct bu_vls *init_proc_vls, int argc, const char **argv);
DM_EXPORT extern int dm_limit(int i);
DM_EXPORT extern int dm_unlimit(int i);
DM_EXPORT extern fastf_t dm_wrap(fastf_t f);

/* adc.c */
DM_EXPORT extern void dm_draw_adc(struct dm *dmp,
Expand Down
1 change: 0 additions & 1 deletion src/libdm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ set(
if_mem.c
if_remote.c
if_stack.c
knob.c
labels.c
options.c
rect.c
Expand Down
17 changes: 0 additions & 17 deletions src/libdm/X/dm-X.c
Original file line number Diff line number Diff line change
Expand Up @@ -765,23 +765,6 @@ X_open(void *UNUSED(ctx), void *vinterp, int argc, const char **argv)
for (cip = dev->classes, k = 0; k < dev->num_classes;
++k, ++cip) {
switch (cip->input_class) {
#ifdef IR_BUTTONS
case ButtonClass:
DeviceButtonPress(dev, pubvars->devbuttonpress,
e_class[nclass]);
++nclass;
DeviceButtonRelease(dev, pubvars->devbuttonrelease,
e_class[nclass]);
++nclass;
break;
#endif
#ifdef IR_KNOBS
case ValuatorClass:
DeviceMotionNotify(dev, pubvars->devmotionnotify,
e_class[nclass]);
++nclass;
break;
#endif
default:
break;
}
Expand Down
17 changes: 0 additions & 17 deletions src/libdm/glx/dm-ogl.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,23 +798,6 @@ ogl_open(void *UNUSED(ctx), void *vinterp, int argc, const char **argv)
for (cip = dev->classes, k = 0; k < dev->num_classes;
++k, ++cip) {
switch (cip->input_class) {
#ifdef IR_BUTTONS
case ButtonClass:
DeviceButtonPress(dev, pubvars->devbuttonpress,
e_class[nclass]);
++nclass;
DeviceButtonRelease(dev, pubvars->devbuttonrelease,
e_class[nclass]);
++nclass;
break;
#endif
#ifdef IR_KNOBS
case ValuatorClass:
DeviceMotionNotify(dev, pubvars->devmotionnotify,
e_class[nclass]);
++nclass;
break;
#endif
default:
break;
}
Expand Down
3 changes: 0 additions & 3 deletions src/libdm/include/private.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ extern void *fb_backends;
/* +-2048 to +-1 */
#define GED_TO_PM1(x) (((fastf_t)(x))*INV_GED)

#ifdef IR_KNOBS
# define NOISE 16 /* Size of dead spot on knob */
#endif

/* Line Styles */
#define DM_SOLID_LINE 0
Expand Down
106 changes: 0 additions & 106 deletions src/libdm/knob.c

This file was deleted.

Loading

0 comments on commit 3e2e838

Please sign in to comment.