Dear all,
this patch simply removes some unused code.
Reviews and comments are welcome.
Please consider applying this to trunk or tell me why not.
--
With regards,
Dmitrijs Ledkovs
=== modified file 'src/utilfuns/url.cpp'
--- src/utilfuns/url.cpp 2011-10-25 17:35:20 +0000
+++ src/utilfuns/url.cpp 2012-03-22 22:39:21 +0000
@@ -133,7 +133,6 @@
//3.Get the hostname part. This is the part from pos up to the first slash
bool checkPath = true;
bool checkParams = true;
- bool checkAnchor = true;
end = strchr(urlPtr, '/');
if (!end) {
@@ -145,7 +144,6 @@
end = strchr(urlPtr, '#');
}
if (!end) {
- checkAnchor = false;
end = urlPtr+strlen(urlPtr);
}
@@ -160,7 +158,6 @@
end = strchr(urlPtr, '#');
}
if (!end) {
- checkAnchor = false;
end = urlPtr+strlen(urlPtr);
}
@@ -174,15 +171,6 @@
SWBuf paramName;
SWBuf paramValue;
- if (checkAnchor) checkAnchor = false;
-/*
- end = strchr(urlPtr, '#');
- if (!end) {
- checkAnchor = false;
- end = urlPtr+strlen(urlPtr);
- }
-*/
- //end = (start && strchr(start, '?')) ? strchr(start, '?')+1 :0;
end = urlPtr;
while (end) {
paramName = "";
=== modified file 'utilities/osis2mod.cpp'
--- utilities/osis2mod.cpp 2011-11-13 00:33:32 +0000
+++ utilities/osis2mod.cpp 2012-03-22 22:39:21 +0000
@@ -1422,7 +1422,6 @@
const char* osisDoc = argv[2];
int append = 0;
SWBuf compType = "";
- bool isCommentary = false;
int iType = 4;
int entrySize = 0;
SWBuf cipherKey = "";
@@ -1470,9 +1469,6 @@
}
usage(*argv, "-s requires one of <2|4>");
}
- else if (!strcmp(argv[i], "-C")) {
- isCommentary = true;
- }
else if (!strcmp(argv[i], "-d")) {
if (i+1 < argc) debug |= atoi(argv[++i]);
else usage(*argv, "-d requires <flags>");
@@ -1480,8 +1476,6 @@
else usage(*argv, (((SWBuf)"Unknown argument: ")+ argv[i]).c_str());
}
- if (isCommentary) isCommentary = true; // avoid unused warning for now
-
if (compType == "ZIP") {
#ifndef EXCLUDEZLIB
compressor = new ZipCompress();
_______________________________________________
sword-devel mailing list: [email protected]
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page