This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/xawtv3.git tree:
Subject: Remove dead code Author: Dmitry Butskoy <[email protected]> Date: Thu Feb 3 15:26:45 2011 -0200 Some variables were set but were never used. Signed-off-by: Mauro Carvalho Chehab <[email protected]> common/vbi-sim.c | 16 ---------------- debug/xvideo.c | 4 +--- libng/contrib-plugins/flt-smooth.c | 3 +-- vbistuff/ntsc-cc.c | 3 +-- x11/rootv.c | 3 +-- x11/xt.c | 2 -- 6 files changed, 4 insertions(+), 27 deletions(-) --- http://git.linuxtv.org/xawtv3.git?a=commitdiff;h=59c290693419a9553ab0f82e96e14aef4cdf4ba7 diff --git a/common/vbi-sim.c b/common/vbi-sim.c index e9fca68..d50623f 100644 --- a/common/vbi-sim.c +++ b/common/vbi-sim.c @@ -179,22 +179,6 @@ ttx_sim(double t, double F, const uint8_t *text) } else { return 0.0; } - - if (t < t1) { - return 0.0; - } else if (t < t2) { - int i, j, n; - - t -= t1; - i = (t * F - .0); - j = i >> 3; - if (j < 44) - n = ((text[j + 1] * 256 + text[j]) >> i) & 3; - else - n = (text[i] >> i) & 3; - - return shape(ph); - } } static unsigned int caption_i = 0; diff --git a/debug/xvideo.c b/debug/xvideo.c index f0400eb..fa97f0f 100644 --- a/debug/xvideo.c +++ b/debug/xvideo.c @@ -92,7 +92,7 @@ static void resize_event(Widget widget, XtPointer client_data, XEvent *event, Boolean *d) { static int width,height; - int wx,wy,wwidth,wheight; + int wwidth,wheight; Display *dpy = XtDisplay(video); #if 0 Screen *scr = DefaultScreenOfDisplay(dpy); @@ -101,8 +101,6 @@ resize_event(Widget widget, XtPointer client_data, XEvent *event, Boolean *d) switch(event->type) { case ConfigureNotify: - wx = event->xconfigure.x; - wy = event->xconfigure.y; wwidth = event->xconfigure.width; wheight = event->xconfigure.height; #if 0 diff --git a/libng/contrib-plugins/flt-smooth.c b/libng/contrib-plugins/flt-smooth.c index 4c431e6..8525b48 100644 --- a/libng/contrib-plugins/flt-smooth.c +++ b/libng/contrib-plugins/flt-smooth.c @@ -462,7 +462,7 @@ frame(void *h, struct ng_video_buf *in) unsigned char *dst; unsigned char *src; unsigned char *last; - unsigned int y,cnt; + unsigned int y; out = ng_malloc_video_buf(&in->fmt, in->fmt.height * in->fmt.bytesperline); out->info = in->info; @@ -470,7 +470,6 @@ frame(void *h, struct ng_video_buf *in) dst = out->data; src = in->data; last = handle->pLastFrame->data; - cnt = in->fmt.width * ng_vfmt_to_depth[in->fmt.fmtid] / 8; for (y = 0; y < in->fmt.height; y++) { switch (in->fmt.fmtid) { diff --git a/vbistuff/ntsc-cc.c b/vbistuff/ntsc-cc.c index 29715f4..6e4b5f5 100644 --- a/vbistuff/ntsc-cc.c +++ b/vbistuff/ntsc-cc.c @@ -350,7 +350,7 @@ static int webtv_check(char * buf,int len) static int CCdecode(int data) { - int b1, b2, row, len, x,y; + int b1, b2, len, x,y; if (data == -1) //invalid data. flush buffers to be safe. { memset(ccbuf[1],0,255); @@ -375,7 +375,6 @@ static int CCdecode(int data) if (b2 & 0x40) //preamble address code (row & indent) { - row=rowdata[((b1<<1)&14)|((b2>>5)&1)]; if (len!=0) ccbuf[ccmode][len++]='\n'; diff --git a/x11/rootv.c b/x11/rootv.c index ed0bef4..017faa7 100644 --- a/x11/rootv.c +++ b/x11/rootv.c @@ -172,13 +172,12 @@ main(int argc, char *argv[]) int ver, rel, req, ev, err, dummy; int adaptors,attributes; - int i,stop,bg,newwin,do_mute,have_mute,grab; + int i,bg,newwin,do_mute,have_mute,grab; dpy = XOpenDisplay(NULL); scr = DefaultScreenOfDisplay(dpy); init_atoms(dpy); - stop = 0; bg = 0; do_mute = 1; have_mute = 0; diff --git a/x11/xt.c b/x11/xt.c index 5fcc0ee..87cd42d 100644 --- a/x11/xt.c +++ b/x11/xt.c @@ -2102,12 +2102,10 @@ void create_pointers(Widget app_shell) { XColor white,red,dummy; - Screen *scr; left_ptr = XCreateFontCursor(dpy,XC_left_ptr); menu_ptr = XCreateFontCursor(dpy,XC_right_ptr); qu_ptr = XCreateFontCursor(dpy,XC_question_arrow); - scr = DefaultScreenOfDisplay(dpy); if (vinfo.depth > 1) { if (XAllocNamedColor(dpy,colormap,"white",&white,&dummy) && XAllocNamedColor(dpy,colormap,"red",&red,&dummy)) { _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
