Permalink
Browse files

Merge pull request #7 from myint/clean_unused

Remove unused variables
  • Loading branch information...
2 parents 83df92f + 4814ccc commit 0df1f9aea76c48bfbea9319411a88eef7997b7ee @acaudwell committed May 21, 2012
Showing with 3 additions and 15 deletions.
  1. +1 −1 src/core
  2. +0 −5 src/dirnode.cpp
  3. +0 −2 src/file.cpp
  4. +1 −4 src/gource.cpp
  5. +1 −1 src/gource_settings.cpp
  6. +0 −2 src/user.cpp
View
@@ -47,8 +47,6 @@ RDirNode::RDirNode(RDirNode* parent, const std::string & abspath) {
vec2 parentPos = parent->getPos();
vec2 offset;
- RDirNode* parentP = parent->getParent();
-
pos = parentPos;
} else {
pos = vec2(0.0f, 0.0f);
@@ -1064,9 +1062,6 @@ void RDirNode::updateBloomVBO(bloombuf& buffer, float dt) {
void RDirNode::drawFiles(float dt) const{
if(in_frustum) {
-
- vec4 col = getColour();
-
glPushMatrix();
glTranslatef(pos.x, pos.y, 0.0);
View
@@ -198,8 +198,6 @@ void RFile::logic(float dt) {
dest_pos = dirnorm + dest;
}*/
- float dradius = dir->getRadius();
-
dest_pos = dest_pos * distance;
accel = dest_pos - pos;
View
@@ -1157,7 +1157,7 @@ void Gource::addFileAction(const std::string& username, const std::string& actio
RAction* userAction = 0;
- int commitNo = commit_seq++;
+ commit_seq++;
if(action == "D") {
userAction = new RemoveAction(user, file, t);
@@ -1345,7 +1345,6 @@ void Gource::updateTime(time_t display_time) {
//display date
char datestr[256];
- char timestr[256];
struct tm* timeinfo = localtime ( &display_time );
strftime(datestr, 256, gGourceSettings.date_format.c_str(), timeinfo);
@@ -1391,8 +1390,6 @@ void Gource::updateCamera(float dt) {
if(track_users && (selectedFile !=0 || selectedUser !=0)) {
Bounds2D focusbounds;
- vec3 camerapos = camera.getPos();
-
if(selectedUser !=0) focusbounds.update(selectedUser->getPos());
if(selectedFile !=0) focusbounds.update(selectedFile->getAbsolutePos());
View
@@ -131,7 +131,7 @@ if(extended_help) {
}
printf("PATH may be a supported version control directory, a log file, a gource config\n");
- printf("file, or '-' to read STDIN. If ommited, gource will attempt to generate a log\n");
+ printf("file, or '-' to read STDIN. If omitted, gource will attempt to generate a log\n");
printf("from the current directory.\n\n");
if(!extended_help) {
View
@@ -178,8 +178,6 @@ void RUser::colourize() {
}
void RUser::assignUserImage() {
- struct stat fileinfo;
-
colourize();
TextureResource* graphic = 0;

0 comments on commit 0df1f9a

Please sign in to comment.