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
+2 -3
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();