From: Mikko Rasa Date: Sun, 4 May 2014 20:23:59 +0000 (+0300) Subject: Remove some unnecessary things X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1a213318d4f26ef7bc3a82fc805ecbfec9f1c74a;p=r2c2.git Remove some unnecessary things --- diff --git a/Build b/Build index eed4769..4aaaf76 100644 --- a/Build +++ b/Build @@ -16,7 +16,6 @@ package "r2c2" program "shoppinglist" { source "source/shoppinglist"; - use "r2c2"; }; library "r2c2_3d" diff --git a/source/3d/tracktype.cpp b/source/3d/tracktype.cpp index b9ebc73..53064b7 100644 --- a/source/3d/tracktype.cpp +++ b/source/3d/tracktype.cpp @@ -171,9 +171,6 @@ void TrackType3D::build_ties(const TrackPart &part, const Profile &profile, floa { float plen = part.get_length(); unsigned count = plen/spacing+0.5; - (void)length; - (void)offset; - (void)profile; unsigned n_vertices = profile.get_n_vertices(); float min_y = profile.get_min_coords().y; diff --git a/source/designer/cameracontroller.cpp b/source/designer/cameracontroller.cpp index 7b7e5f1..ef00200 100644 --- a/source/designer/cameracontroller.cpp +++ b/source/designer/cameracontroller.cpp @@ -110,13 +110,9 @@ void CameraController::button_press(unsigned btn) drag_mode = ((btn==2)==shift_pressed ? ROTATE : PAN); } else if(btn==4) - { adjust_distance(-get_distance()*0.1); - } else if(btn==5) - { adjust_distance(get_distance()*0.1); - } } void CameraController::button_release(unsigned btn) diff --git a/source/libr2c2/tracktype.h b/source/libr2c2/tracktype.h index b540e29..267d5d0 100644 --- a/source/libr2c2/tracktype.h +++ b/source/libr2c2/tracktype.h @@ -43,7 +43,6 @@ public: virtual void finish(); void appearance(const std::string &); void part(); - void position(float, float, float); void state_bits(unsigned); };