summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-10-19 11:45:12 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-10-24 22:42:07 +0800
commit62e557ec650006f2d3dd614f84804ed1b5cd4349 (patch)
tree369b8c0d95bb3235eaacd520cc6c7aba1d0f5568 /src/screen.cpp
parent6f4cb23385f8818f4373c939f241f1a20596870a (diff)
downloadunity-window-decorator-62e557ec650006f2d3dd614f84804ed1b5cd4349.tar.gz
unity-window-decorator-62e557ec650006f2d3dd614f84804ed1b5cd4349.tar.bz2
core: general code cleanup (static analysis)
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index d38e13f..4e5fc2e 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -4098,7 +4098,7 @@ CompScreen::init (const char *name)
Window rootReturn, parentReturn;
Window *children;
unsigned int nchildren;
- int defaultDepth, nvisinfo;
+ int nvisinfo;
XSetWindowAttributes attrib;
CompOption::Value::Vector vList;
@@ -4335,8 +4335,6 @@ CompScreen::init (const char *name)
return false;
}
- defaultDepth = visinfo->depth;
-
black.red = black.green = black.blue = 0;
if (!XAllocColor (dpy, priv->colormap, &black))