Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankit3002 committed Dec 12, 2023
1 parent 710ea65 commit 503765c
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions pappl/system-loadsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,27 +737,6 @@ bool result = papplSystemSavePreset(printer);
return (true);
}

//
// 'papplFileOpenFdYo()' - Convert the int file descriptor to cups_file_t file descriptor.
//

cups_file_t *
papplFileOpenFdYo(
const char *mode,
int fd)
{
cups_file_t *fp;
if ((fp = cupsFileOpenFd(fd, mode)) == NULL)
{
if (*mode == 's')
httpAddrClose(NULL, fd);
else
close(fd);
}
return (fp);
}


//
// 'papplSystemSavePreset()' - Save preset into the state file.
//
Expand Down

0 comments on commit 503765c

Please sign in to comment.