[gnome-commander] Drop some unused code
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Drop some unused code
- Date: Sun, 4 Dec 2011 22:56:28 +0000 (UTC)
commit 1c0bfd90cdb29a713732ebf48e64caa677777608
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Dec 4 23:54:41 2011 +0100
Drop some unused code
src/gnome-cmd-advrename-lexer.ll | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-advrename-lexer.ll b/src/gnome-cmd-advrename-lexer.ll
index 8be4948..02a3795 100644
--- a/src/gnome-cmd-advrename-lexer.ll
+++ b/src/gnome-cmd-advrename-lexer.ll
@@ -75,7 +75,6 @@ struct CHUNK
struct
{
long n;
- long start;
int step;
int prec;
int init_step;
@@ -194,7 +193,7 @@ tag_name {ape}|{audio}|{doc}|{exif}|{file}|{flac}|{id3}|{image}|{iptc}|{pdf}|
sscanf(yytext+3,"%d",&precision);
p->type = COUNTER;
- p->counter.n = p->counter.start = 1; // default counter value
+ p->counter.n = 1; // default counter value
p->counter.init_step = GLOBAL_COUNTER_STEP;
p->counter.step = 1; // default counter step
p->counter.prec = p->counter.init_prec = yytext[3]=='a' ? AUTO_COUNTER_PREC : min (precision, MAX_PRECISION);
@@ -270,7 +269,7 @@ tag_name {ape}|{audio}|{doc}|{exif}|{file}|{flac}|{id3}|{image}|{iptc}|{pdf}|
CHUNK *p = g_new0 (CHUNK,1);
p->type = COUNTER;
- p->counter.n = p->counter.start = 1; // default counter value
+ p->counter.n = 1; // default counter value
p->counter.init_step = GLOBAL_COUNTER_STEP;
p->counter.step = 1; // default counter step
p->counter.init_prec = GLOBAL_COUNTER_PREC;
@@ -325,7 +324,7 @@ void gnome_cmd_advrename_reset_counter(long start, int precision, int auto_preci
for (vector<CHUNK *>::iterator i=fname_template.begin(); i!=fname_template.end(); ++i)
if ((*i)->type==COUNTER)
{
- (*i)->counter.n = (*i)->counter.start = start;
+ (*i)->counter.n = start;
(*i)->counter.step = (*i)->counter.init_step==GLOBAL_COUNTER_STEP ? step : (*i)->counter.init_step;
switch ((*i)->counter.init_prec)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]