Remove unused function filename_as_url().

svn path=/trunk/netsurf/; revision=4334
This commit is contained in:
James Bursa 2008-06-14 23:24:11 +00:00
parent f87138e5de
commit 884b93acaa
2 changed files with 0 additions and 24 deletions

View File

@ -451,26 +451,3 @@ static struct directory *filename_create_directory(const char *prefix) {
return new_dir;
}
/**
* Converts a filename into a local URL
*
* \param filename the filename to convert
* \return a local URL allocated on heap, or NULL on failure.
*/
char *filename_as_url(const char *filename) {
char *temp, *url;
int length;
length = strlen(TEMP_FILENAME_PREFIX) + strlen(filename) + 2;
temp = malloc(length);
if (!temp) {
LOG(("No memory for malloc()"));
return NULL;
}
sprintf(temp, "%s/%s", TEMP_FILENAME_PREFIX, filename);
url = path_to_url(temp);
free(temp);
return url;
}

View File

@ -32,6 +32,5 @@ bool filename_claim(const char *filename);
void filename_release(const char *filename);
bool filename_initialise(void);
void filename_flush(void);
char *filename_as_url(const char *filename);
#endif