diff options
author | Allen Winter <allen.winter@kdab.com> | 2014-09-14 10:29:08 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2014-09-14 10:29:08 -0400 |
commit | 9eb5fa38dc2c6f01ad512d492236ada4ac7d7813 (patch) | |
tree | 327c83eae481d44dd09d45b61270c0764cc8d17a /scripts/mkrestrictiontable.pl | |
parent | f16e0d712f81fafef3c1cad7657faf90e06ccd06 (diff) | |
download | libical-git-9eb5fa38dc2c6f01ad512d492236ada4ac7d7813.tar.gz |
remove unused consts, as found using clang 3.4 (on Travis)
Diffstat (limited to 'scripts/mkrestrictiontable.pl')
-rwxr-xr-x | scripts/mkrestrictiontable.pl | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/scripts/mkrestrictiontable.pl b/scripts/mkrestrictiontable.pl index d47f3ffd..daa9c864 100755 --- a/scripts/mkrestrictiontable.pl +++ b/scripts/mkrestrictiontable.pl @@ -64,39 +64,5 @@ print " {ICAL_METHOD_NONE,ICAL_NO_COMPONENT,ICAL_NO_PROPERTY,ICAL_RESTRICTION print "};\n"; -print "static const icalrestriction_component_record icalrestriction_component_records[] = {\n"; - - -# Go back through the entire file and build the component restriction table -close(F); -open(F,"$ARGV[0]") || die "Can't open restriction data file $ARGV[0]:$!"; - -while(<F>) -{ - - chop; - - s/\#.*$//; - - my($method,$targetcomp,$prop,$subcomp,$restr,$sub) = split(/,/,$_); - - next if !$method; - - if(!$sub) { - $sub = "0"; - } else { - $sub = "icalrestriction_".$sub; - } - - - if($subcomp ne "NONE"){ - print(" \{ICAL_METHOD_${method},ICAL_${targetcomp}_COMPONENT,ICAL_${subcomp}_COMPONENT,ICAL_RESTRICTION_${restr},$sub\},\n"); - } - -} - -# print the terminating line -print " {ICAL_METHOD_NONE,ICAL_NO_COMPONENT,ICAL_NO_COMPONENT,ICAL_RESTRICTION_NONE,0}\n"; -print "};\n"; } |