]> git.tdb.fi Git - r2c2.git/commitdiff
Remove some unnecessary things
authorMikko Rasa <tdb@tdb.fi>
Sun, 4 May 2014 20:23:59 +0000 (23:23 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 4 May 2014 21:15:27 +0000 (00:15 +0300)
Build
source/3d/tracktype.cpp
source/designer/cameracontroller.cpp
source/libr2c2/tracktype.h

diff --git a/Build b/Build
index eed47692c0b00af801d6b87cdd23b892db8e2ebd..4aaaf7617cb8f93dd066ee92a30af2d00680d857 100644 (file)
--- a/Build
+++ b/Build
@@ -16,7 +16,6 @@ package "r2c2"
        program "shoppinglist"
        {
                source "source/shoppinglist";
-               use "r2c2";
        };
 
        library "r2c2_3d"
index b9ebc73c31708615536549b3e4a771c2a56b5ec1..53064b73daa9e9a95d0b8fb1689792812e6fed6c 100644 (file)
@@ -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;
index 7b7e5f1339672d0dac127d8a5931a76d6f54ef57..ef0020081dbc1652bd66dd97b278db36defb49a7 100644 (file)
@@ -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)
index b540e291bd4bf75bef03440ef9530c91321e61a1..267d5d0f1ace2c7984d93c35d09db2ae63015ca5 100644 (file)
@@ -43,7 +43,6 @@ public:
                virtual void finish();
                void appearance(const std::string &);
                void part();
-               void position(float, float, float);
                void state_bits(unsigned);
        };