Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
erincatto committed Jan 20, 2025
1 parent d0bf516 commit f3202f2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
3 changes: 0 additions & 3 deletions include/box2d/box2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,6 @@ B2_API void b2Shape_SetRestitution( b2ShapeId shapeId, float restitution );
/// Get the shape restitution
B2_API float b2Shape_GetRestitution( b2ShapeId shapeId );

/// Get the allowed clip fraction.
B2_API float b2Shape_GetAllowedClipFraction( b2ShapeId shapeId );

/// Get the shape filter
B2_API b2Filter b2Shape_GetFilter( b2ShapeId shapeId );

Expand Down
2 changes: 0 additions & 2 deletions samples/sample_shapes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class ChainShape : public Sample
m_shapeType = e_circleShape;
m_restitution = 0.0f;
m_friction = 0.2f;
m_allowedClipFraction = 0.1f;

CreateScene();
Launch();
Expand Down Expand Up @@ -228,7 +227,6 @@ class ChainShape : public Sample
b2ShapeId m_shapeId;
float m_restitution;
float m_friction;
float m_allowedClipFraction;
};

static int sampleChainShape = RegisterSample( "Shapes", "Chain Shape", ChainShape::Create );
Expand Down
12 changes: 1 addition & 11 deletions src/contact.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,8 @@ enum b2ContactFlags
// Contact has a hit event
b2_contactHitEventFlag = 0x00000002,

// One of the shapes is a sensor
//b2_contactSensorFlag = 0x0000004,

// Set when a sensor is touching
// todo this is not used, perhaps have b2Body_GetSensorContactData()
//b2_contactSensorTouchingFlag = 0x00000008,

// This contact wants sensor events
//b2_contactEnableSensorEvents = 0x00000010,

// This contact wants contact events
b2_contactEnableContactEvents = 0x00000020,
b2_contactEnableContactEvents = 0x00000004,
};

// A contact edge is used to connect bodies and contacts together
Expand Down

0 comments on commit f3202f2

Please sign in to comment.