Bug 383353 - Remove normalizePostData from browser.js. r=gavin

This commit is contained in:
rflint@ryanflint.com 2007-06-05 13:07:41 -07:00
parent d63f6da5c7
commit d21adfda6c

View File

@ -2085,21 +2085,6 @@ function getShortcutOrURI(aURL, aPostDataRef)
return aURL;
}
#if 0
// XXXben - this is only useful if we ever support text/plain encoded forms in
// smart keywords.
function normalizePostData(aStringData)
{
var parts = aStringData.split("&");
var result = "";
for (var i = 0; i < parts.length; ++i) {
var part = unescape(parts[i]);
if (part)
result += part + "\r\n";
}
return result;
}
#endif
function getPostDataStream(aStringData, aKeyword, aEncKeyword, aType)
{
var dataStream = Components.classes["@mozilla.org/io/string-input-stream;1"]