From 51cffbdcb7f2a88c3cde381fa6ca704fd723c242 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sat, 14 Sep 2013 15:49:43 +0200 Subject: examples: remove unused static const variables They cause warnings on Clang. Change-Id: If599303f4a00c2a24f0a7c369299f3ea6fe7fc91 Reviewed-by: Giuseppe D'Angelo --- examples/network/torrent/peerwireclient.cpp | 1 - examples/network/torrent/torrentclient.cpp | 1 - examples/opengl/pbuffers/cube.cpp | 2 -- examples/opengl/shared/qtlogo.cpp | 3 --- 4 files changed, 7 deletions(-) (limited to 'examples') diff --git a/examples/network/torrent/peerwireclient.cpp b/examples/network/torrent/peerwireclient.cpp index 0f77ba10d3..a0be01d363 100644 --- a/examples/network/torrent/peerwireclient.cpp +++ b/examples/network/torrent/peerwireclient.cpp @@ -49,7 +49,6 @@ static const int ConnectTimeout = 60 * 1000; static const int KeepAliveInterval = 30 * 1000; static const int RateControlTimerDelay = 2000; static const int MinimalHeaderSize = 48; -static const int FullHeaderSize = 68; static const char ProtocolId[] = "BitTorrent protocol"; static const char ProtocolIdSize = 19; diff --git a/examples/network/torrent/torrentclient.cpp b/examples/network/torrent/torrentclient.cpp index b5969e552e..2db74164ef 100644 --- a/examples/network/torrent/torrentclient.cpp +++ b/examples/network/torrent/torrentclient.cpp @@ -62,7 +62,6 @@ static const int RateControlTimerDelay = 1000; static const int MinimumTimeBeforeRevisit = 30; static const int MaxUploads = 4; static const int UploadScheduleInterval = 10000; -static const int EndGamePieces = 5; class TorrentPiece { public: diff --git a/examples/opengl/pbuffers/cube.cpp b/examples/opengl/pbuffers/cube.cpp index ffa08780d7..dc1bb23fea 100644 --- a/examples/opengl/pbuffers/cube.cpp +++ b/examples/opengl/pbuffers/cube.cpp @@ -44,8 +44,6 @@ #include #include -static const qreal FACE_SIZE = 0.4; - static const qreal speeds[] = { 3.8f, 4.4f, 5.6f }; static const qreal amplitudes[] = { 2.0f, 2.5f, 3.0f }; diff --git a/examples/opengl/shared/qtlogo.cpp b/examples/opengl/shared/qtlogo.cpp index ea175234ae..608f5b3f2b 100644 --- a/examples/opengl/shared/qtlogo.cpp +++ b/examples/opengl/shared/qtlogo.cpp @@ -49,10 +49,7 @@ static const qreal tee_height = 0.311126; static const qreal cross_width = 0.25; static const qreal bar_thickness = 0.113137; -static const qreal inside_diam = 0.20; -static const qreal outside_diam = 0.30; static const qreal logo_depth = 0.10; -static const int num_divisions = 32; //! [0] struct Geometry -- cgit v1.2.3