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:
Éric Lemoine
2009-02-27 15:15:30 +00:00
parent b625e9f12f
commit 5a68638971
3 changed files with 3 additions and 5 deletions

View File

@@ -92,7 +92,6 @@ OpenLayers.Format.Filter = OpenLayers.Class(OpenLayers.Format.XML, {
if(typeof data == "string") {
data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);
}
var root = data.nodeType == 9 ? data.documentElement : data;
var version = this.version;
if(!version) {
version = this.defaultVersion;

View File

@@ -61,7 +61,7 @@ OpenLayers.Format.Filter.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
*/
read: function(data) {
var obj = {};
var filter = this.readers.ogc["Filter"].apply(this, [data, obj]);
this.readers.ogc["Filter"].apply(this, [data, obj]);
return obj.filter;
},

View File

@@ -475,7 +475,6 @@ OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, {
*/
createElementNSPlus: function(name, options) {
options = options || {};
var loc = name.indexOf(":");
// order of prefix preference
// 1. in the uri option
// 2. in the prefix option
@@ -483,7 +482,7 @@ OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, {
// 4. from the defaultPrefix
var uri = options.uri || this.namespaces[options.prefix];
if(!uri) {
loc = name.indexOf(":");
var loc = name.indexOf(":");
uri = this.namespaces[name.substring(0, loc)];
}
if(!uri) {
@@ -516,7 +515,7 @@ OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, {
* setAttributeNS will be used instead of setAttribute.
*/
setAttributes: function(node, obj) {
var value, loc, alias, uri;
var value, uri;
for(var name in obj) {
if(obj[name] != null && obj[name].toString) {
value = obj[name].toString();