remove unused variables, no functional change, thanks to pvalsecc for catching those as part of #1959
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8902 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -92,7 +92,6 @@ OpenLayers.Format.Filter = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
if(typeof data == "string") {
|
if(typeof data == "string") {
|
||||||
data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);
|
data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);
|
||||||
}
|
}
|
||||||
var root = data.nodeType == 9 ? data.documentElement : data;
|
|
||||||
var version = this.version;
|
var version = this.version;
|
||||||
if(!version) {
|
if(!version) {
|
||||||
version = this.defaultVersion;
|
version = this.defaultVersion;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
*/
|
*/
|
||||||
read: function(data) {
|
read: function(data) {
|
||||||
var obj = {};
|
var obj = {};
|
||||||
var filter = this.readers.ogc["Filter"].apply(this, [data, obj]);
|
this.readers.ogc["Filter"].apply(this, [data, obj]);
|
||||||
return obj.filter;
|
return obj.filter;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -475,7 +475,6 @@ OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, {
|
|||||||
*/
|
*/
|
||||||
createElementNSPlus: function(name, options) {
|
createElementNSPlus: function(name, options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var loc = name.indexOf(":");
|
|
||||||
// order of prefix preference
|
// order of prefix preference
|
||||||
// 1. in the uri option
|
// 1. in the uri option
|
||||||
// 2. in the prefix option
|
// 2. in the prefix option
|
||||||
@@ -483,7 +482,7 @@ OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, {
|
|||||||
// 4. from the defaultPrefix
|
// 4. from the defaultPrefix
|
||||||
var uri = options.uri || this.namespaces[options.prefix];
|
var uri = options.uri || this.namespaces[options.prefix];
|
||||||
if(!uri) {
|
if(!uri) {
|
||||||
loc = name.indexOf(":");
|
var loc = name.indexOf(":");
|
||||||
uri = this.namespaces[name.substring(0, loc)];
|
uri = this.namespaces[name.substring(0, loc)];
|
||||||
}
|
}
|
||||||
if(!uri) {
|
if(!uri) {
|
||||||
@@ -516,7 +515,7 @@ OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, {
|
|||||||
* setAttributeNS will be used instead of setAttribute.
|
* setAttributeNS will be used instead of setAttribute.
|
||||||
*/
|
*/
|
||||||
setAttributes: function(node, obj) {
|
setAttributes: function(node, obj) {
|
||||||
var value, loc, alias, uri;
|
var value, uri;
|
||||||
for(var name in obj) {
|
for(var name in obj) {
|
||||||
if(obj[name] != null && obj[name].toString) {
|
if(obj[name] != null && obj[name].toString) {
|
||||||
value = obj[name].toString();
|
value = obj[name].toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user