summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/dzen/files/dzen-0.9.5_p1-unused-but-set.patch')
-rw-r--r--x11-misc/dzen/files/dzen-0.9.5_p1-unused-but-set.patch72
1 files changed, 0 insertions, 72 deletions
diff --git a/x11-misc/dzen/files/dzen-0.9.5_p1-unused-but-set.patch b/x11-misc/dzen/files/dzen-0.9.5_p1-unused-but-set.patch
deleted file mode 100644
index 70116ff66d2b..000000000000
--- a/x11-misc/dzen/files/dzen-0.9.5_p1-unused-but-set.patch
+++ /dev/null
@@ -1,72 +0,0 @@
---- a/main.c
-+++ b/main.c
-@@ -293,7 +293,6 @@
- static void
- set_docking_ewmh_info(Display *dpy, Window w, int dock) {
- unsigned long strut[12] = { 0 };
-- unsigned long strut_s[4] = { 0 };
- XWindowAttributes wa;
- Atom type;
- unsigned int desktop;
-@@ -339,8 +338,6 @@
- strut[2] = si.y + wa.height;
- strut[8] = wa.x;
- strut[9] = wa.x + wa.width - 1;
--
-- strut_s[2] = strut[2];
- }
- else if((wa.y - si.y + wa.height) == si.height) {
- #ifdef DZEN_XINERAMA
-@@ -358,8 +355,6 @@
- #endif
- strut[10] = wa.x;
- strut[11] = wa.x + wa.width - 1;
--
-- strut_s[3] = strut[3];
- }
-
- if(strut[2] != 0 || strut[3] != 0) {
-@@ -832,11 +827,9 @@
- XFreeStringList(missing);
-
- if(dzen.fnpl[p].set) {
-- XFontSetExtents *font_extents;
- XFontStruct **xfonts;
- char **font_names;
- dzen.fnpl[p].ascent = dzen.fnpl[p].descent = 0;
-- font_extents = XExtentsOfFontSet(dzen.fnpl[p].set);
- n = XFontsOfFontSet(dzen.fnpl[p].set, &xfonts, &font_names);
- for(i = 0, dzen.fnpl[p].ascent = 0, dzen.fnpl[p].descent = 0; i < n; i++) {
- if(dzen.fnpl[p].ascent < (*xfonts)->ascent)
---- a/gadgets/textwidth.c
-+++ b/gadgets/textwidth.c
-@@ -62,11 +62,9 @@
- if(missing)
- XFreeStringList(missing);
- if(font.set) {
-- XFontSetExtents *font_extents;
- XFontStruct **xfonts;
- char **font_names;
- font.ascent = font.descent = 0;
-- font_extents = XExtentsOfFontSet(font.set);
- n = XFontsOfFontSet(font.set, &xfonts, &font_names);
- for(i = 0, font.ascent = 0, font.descent = 0; i < n; i++) {
- if(font.ascent < (*xfonts)->ascent)
---- a/gadgets/gcpubar.c
-+++ b/gadgets/gcpubar.c
-@@ -40,7 +40,6 @@
-
- int main(int argc, char *argv[]) {
- int i, t;
-- double total;
- struct cpu_info mcpu;
- FILE *statfp;
- char buf[256], *ep;
-@@ -149,7 +148,6 @@
- while(fgets(buf, sizeof buf, statfp)) {
- if(!strncmp(buf, "cpu ", 4)) {
- unsigned long long unice;
-- double myload;
- /* linux >= 2.6 */
- if((sscanf(buf, "cpu %llu %llu %llu %llu %llu",
- &ncpu.user, &unice, &ncpu.sys, &ncpu.idle, &ncpu.iowait)) < 5) {